restc-cpp icon indicating copy to clipboard operation
restc-cpp copied to clipboard

Improve json/c++ name-mapping

Open jgaa opened this issue 8 years ago • 1 comments

The current implementation works only on the root-level of the serialization. We need to map the mapping to a class, so that it works also for recursive properties.

One potential implementation is to use traits, where the mapping is pinned to a class at compile-time trough templates. Another option is to make the mapping configurable during runtime, by assigning it to classid's, and provide a list of such mappings to the serializer.

jgaa avatar Jun 12 '17 08:06 jgaa

I just wanted to say that this is the biggest feature request I have. Most APIs don't return ONLY the data you want. There are usually some meta-data fields in the response as well and it often is nested in several levels.

CrazyKidJack avatar Sep 10 '20 16:09 CrazyKidJack