struct_mapping icon indicating copy to clipboard operation
struct_mapping copied to clipboard

Reset the mapping skeleton.

Open ghost opened this issue 3 years ago • 1 comments

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.

ghost avatar Aug 26 '21 23:08 ghost

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.

bk192077 avatar Sep 02 '21 09:09 bk192077