simdjson / experimental_json_builder

Experimental JSON builder based on C++ reflection
Apache License 2.0
39 stars 2 forks source link

Can we deserialize automagically with simdjson::ondemand #29

Open lemire opened 1 month ago

lemire commented 1 month ago

The simdjson::ondemand API is begging for reflection-based deserialization.

We have this ugly approach:

https://github.com/simdjson/simdjson/blob/master/doc/basics.md#adding-support-for-custom-types

It works, but it requires too much work from our users. It should be automagical. :-)

FranciscoThiesen commented 1 month ago

Will start investigating this a bit. Will keep updates posted here (@lemire)

FranciscoThiesen commented 1 month ago

Will open a branch on https://github.com/simdjson/simdjson for it

FranciscoThiesen commented 3 weeks ago

Let's keep this open and when we have the official C++26 spec and compiler support we can add it to simdjson, using the version check as @lemire recently used for leveraging concepts for having serialization of vector