04-01-2024 05:33 PM
Hello folks!
I'm trying to serialize an object hierarchy to JSON and deserialize it back to LabVIEW objects and ensuring that they hold their relationships. Say Vehicle is the parent class and has an Engine, while Car is the child of Vehicle.
So far I've had success with only one library: Gcraftsman JSON Object Serialization https://www.vipm.io/package/gcraftsman_lib_json_object_serialization/
Things work just fine in source code - but now I notice that NI is asking me to activate its license, and when I click to purchase, I go to a dead end.
Has anyone purchased this library before? Or does anyone have another open source alternative?
Solved! Go to Solution.
04-01-2024 08:19 PM
Tinkered around a bit with LabVIEW JSONText and LVClass Serializer - with Generic Object Serializer as the input object, configured to Inline as opposed to None, I've got the desired effect. Thanks folks from JSONText!
10-11-2024 12:15 PM - edited 10-11-2024 12:53 PM
I found a good solution here:
https://github.com/logmanoriginal/jsontext-object-serialization
10-11-2024 01:44 PM
Hello! I have an email in my inbox requesting a print screen for this solution. Not sure if the post was deleted, but here it is for reference
10-11-2024 01:47 PM
Yes, I had asked for it, but then I found the reference on Github.
Thank you.