daw_json_link icon indicating copy to clipboard operation
daw_json_link copied to clipboard

Investigate implementation of a catch-all json member

Open beached opened this issue 2 years ago • 0 comments

Name of mapping : TBD Purpose: To provide a json_value like structure over the unmapped members in a class. Because we know the mapped members and their locations, that location_info structure can be used as a filter list and is of fixed size.

example usage:

{
  "a": 1,
  "b": 2,
  "c": 3 
}

With a mapping like

using type = json_member_list<json_link<"b", int>, json_catch_all>;

Would require a class that is constructible from an int, json_catch_all_value<1>

The 1 is because the size of the filter list is 1 element.

beached avatar Jun 19 '22 23:06 beached