Category: Data, container

by I would like to define a c++ structure pass the person instance to the mapping method along with JSON data then use the filled structure

To map JSON to a structure, it is necessary to register all data members of all structures that you want to mapped using for each field and call the function During the mapping process, the correspondence between the types of data members and the types of set value is checked, and (for numbers) the set value is checked to get out of the range of values of the data member type.

Throws an exception if, after completion of the mapping, the field value is an empty string or an empty container.

Related Articles