Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate implementation of a catch-all json member #300

Open
beached opened this issue Jun 19, 2022 · 0 comments
Open

Investigate implementation of a catch-all json member #300

beached opened this issue Jun 19, 2022 · 0 comments
Milestone

Comments

@beached
Copy link
Owner

beached commented Jun 19, 2022

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 beached added this to the v4.0 milestone Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant