LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Object to JSON Serialization - GCraftsman not in existence?

Solved!
Go to solution

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?

0 Kudos
Message 1 of 5
(488 Views)
Solution
Accepted by topic author Shehzaada

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!

Message 2 of 5
(455 Views)
0 Kudos
Message 3 of 5
(147 Views)

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

 

Shehzaada_0-1728672272278.png

 

0 Kudos
Message 4 of 5
(135 Views)

Yes, I had asked for it, but then I found the reference on Github.

Thank you.

0 Kudos
Message 5 of 5
(130 Views)