Is there an example for supporting custom types for parse_many / document_stream #2155
Unanswered
pointerpower
asked this question in
Q&A
Replies: 1 comment
-
That's a reasonable request. The type is Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First, thanks for the very thorough documentation, I've been able to get up and running very quickly.
I followed the instructions for Adding support for custom types to specialize simdjson::ondemand::document::get() and simdjson::ondemand::value::get(), that worked like a charm.
However, I can't get it to work using parse_many as described here: parse_many.md.
Specifically, once I've gotten a single doc from the stream:
Is there a way to get a simdjson::ondemand::document from streamDoc? Do I need to specialize a different get() for streamDoc? Please provide an example if this is possible.
Beta Was this translation helpful? Give feedback.
All reactions