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

Safe JSON prep #54

Open
seanbaxter opened this issue Sep 17, 2024 · 1 comment
Open

Safe JSON prep #54

seanbaxter opened this issue Sep 17, 2024 · 1 comment

Comments

@seanbaxter
Copy link
Collaborator

We want to build a rich example with fully-safe JSON parsing. This can use reflection to (de)serialize structs.

  • What are the language features we still need implement?
  • What are the library components we need?
@cmazakas
Copy link
Collaborator

cmazakas commented Sep 18, 2024

We're going to for sure need a safe numeric parser.

I'm not sure how to create a struct using reflective methods. How do we handle objects-of-objects? Do we construct an object then gradually relocate into the data members? Do we attempt placement new?

We're probably going to need a FromIterator trait for constructing arrays as well. I forget that a big part of JSON is arrays.

std2::vector will need an iterator-based constructor which I can work on adding in addition to a numeric parser of some kind. I think Matt Borland is the expert here.

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

2 participants