struct_mapping
struct_mapping copied to clipboard
Reset the mapping skeleton.
Just wanted to ask if there is any way to reset or change which values are mapped from a structure.
Lets say I have a structure with 3 attributes, I map the three to a JSON, but later down the line I just want to get a JSON only containing two out of the 3 attributes on the structure. Is there a way to reset/change the skeleton of what gets map, or am I missing something?
Really nice library, love the fact that is just a header file.
Thanks.
Unfortunately, there is no such possibility now. We need some mechanism to disable serialization of some fields of the structure. I'll mark it in my wish list. There is not enough time to implement some features.