Replies: 1 comment 6 replies
-
No, there is no way to read a JSON file without parsing it. But you can similarly pipe to a |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Take this very simple example:
The line
i >> structure;
parses the contents oflayout.json
into ajson
object calledstructure
.Is there any way for me to dump
structure
into some file that can be read directly back into ajson
object (i.e. without having to parse it)?Ideally, I'd like a compile time solution. Something I can "include" directly. For example: I run the parser once and export the resulting
json
object to something like a binary blob that I would just have toreinterpret_cast
to use.Beta Was this translation helpful? Give feedback.
All reactions