Click here to Skip to main content
15,881,248 members
Articles / Programming Languages / C++

StructMapping - Mapping JSON to and from a C++ Structure

Rate me:
Please Sign up or sign in to vote.
5.00/5 (9 votes)
1 May 2022MIT8 min read 38.1K   474   22  
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. Or vice versa, get Person as JSON. StructMapping is trying to solve these problems.
In this article, we look at the installation and usage of StructMapping. Consider examples of use when mapping JSON to a C++ structure and when reverse mapping structure C++ to JSON.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions