Replies: 2 comments 4 replies
-
If you need to make JSON export, we recommend to use zserio.runtime.DebugStringUtil.toJsonFile() method implemented directly in zserio runtime. |
Beta Was this translation helpful? Give feedback.
4 replies
-
The solution recommended by @mikir worked. |
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
-
Hey,
I am working with zserio and NDS layers. I need to serialize the data from java to JSON. Probably you will wonder, why I try to do what zserio tries to avoid, a JSON text overhead, but I need the data in C# and thus have no other idea about how to pass it to C#.
I want to use the Java application as a standalone application and retrieve the content as JSON.
Unfortunately, the zero overhead of zserio winds up in a huge overhead when trying to serialize the data, due to the many layers and list contained in lists and pointers pointing to other structures, it is a nightmare.
The GSON library fails to serialize the layers due to the contained, self referencing classes inside the layers...
What would be the best option, to get the data out of the generated Java objects?
Beta Was this translation helpful? Give feedback.
All reactions