Skip to content

Investigate implementation of a catch-all json member #300

@beached

Description

@beached

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions