simdjson icon indicating copy to clipboard operation
simdjson copied to clipboard

Can On Demand support something like json_struct?

Open lemire opened this issue 3 years ago • 5 comments

It seems that it would be doable to get On Demand to support something like json_struct.

https://github.com/jorgen/json_struct

lemire avatar Oct 25 '20 15:10 lemire

It definitely seems likely. Ultimately I'd like to see an interchangeable api where you can use json path to find objects, declarative deserialization to get individual records, and drop back down to ondemand for anything more complicated. ondemand is likely the low level language for a couple of nice higher level capabilities.

jkeiser avatar Oct 25 '20 17:10 jkeiser

This is also a nice way to make efficient order insensitive object deserialization. It can even use hashes when it finds the object out of order.

jkeiser avatar Oct 25 '20 17:10 jkeiser

Related: #1382.

jkeiser avatar Jan 21 '21 20:01 jkeiser

What's your read on having this for 1.0 now? It will likely take some ingenuity to do right ...

jkeiser avatar Jan 25 '21 07:01 jkeiser

We can delay it post 1.0.

lemire avatar Jan 25 '21 22:01 lemire