An easy way to save objects in JSON?
sebastian.friston_f34eb580c1
Posts: 34
Hello,
I would like to save an arbitrary object (i.e. one of my own making) to file, and was wondering if it was possible to utilise Daz's JSON library?
Are any of its methods exposed via DazScript?
I reckon I could use libraries like this [https://github.com/douglascrockford/JSON-js] direct in DazScript with little or no tweaking but thought I would check first.
Comments
By pure dumb luck, I have discovered the answer while looking at the debugger.
It is yes. There is an object in global called JSON.
The following demonstrates how to use it should anyone else be interested...