Jump to content

Prototype of my Serialization library now available (JSON, XML, your favorite format...)


Recommended Posts

Posted

Over in the community forum, I have finally gotten around to posting the prototype for my serialization library. The prototype supports serialization to and from JSON for 9 data types and to XML (my own schema) for the same 9 (listed below).

https://decibel.ni.com/content/docs/DOC-24015

Please take a look. I've made it a priority to finish out the data type support for the framework generally and for the JSON format specifically. I will need community help to tackle any other formats: the framework is designed to make a single pair of functions on a class handle any file format, but the particular formats on the back end are not my specialty.

Please post all feedback on the ni.com site so that they stay all in one place and I can follow the threads easier.

  • Like 1
Posted

Over in the community forum, I have finally gotten around to posting the prototype for my serialization library. The prototype supports serialization to and from JSON for 9 data types and to XML (my own schema) for the same 9 (listed below).

https://decibel.ni.c.../docs/DOC-24015

Please take a look. I've made it a priority to finish out the data type support for the framework generally and for the JSON format specifically. I will need community help to tackle any other formats: the framework is designed to make a single pair of functions on a class handle any file format, but the particular formats on the back end are not my specialty.

Please post all feedback on the ni.com site so that they stay all in one place and I can follow the threads easier.

There is a broken VI in the latest version 0.3 (never seen this error before, presumably because I shy away from xnodes).

Posted

Did you install the Error Ring XNode from the web or something? This shouldn't happen with the one that ships with LV 2012.

(And you probably don't shy away from them... lots of nodes in the palettes are XNodes but don't look like it.)

Posted (edited)

Did you install the Error Ring XNode from the web or something? This shouldn't happen with the one that ships with LV 2012.

Nope. It's a (2012) vanilla install (same in both 32 and 64 by-the-way).

Edited by ShaunR
Posted (edited)

Getting the same error here (LabVIEW 12.0f1 32-bit).

The project looks very interesting though!

Edited by Onno
  • 3 weeks later...
Posted

Forgot all about your little project until I read Reading Json :)

Just had another look (no errors now). I know it's in it's infancy, but I wasn't really sure how to use it if I wasn't using classes. Is the intention to only support classes?

Posted
Is the intention to only support classes?
No other data type can define its composition function. If you want to create a class to wrap a raw cluster type, that's easy enough to do. But something has to supply the data translation layer and no other type has that ability.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.