Does anyone use a SS2.0 friendly library for conve...
# suitescript
t
Does anyone use a SS2.0 friendly library for converting JSON to XML and vice-versa? I'm sure I could fix the immediate error but would rather use something tried and true {"type":"error.SuiteScriptModuleLoaderError","name":"UNEXPECTED_ERROR","message":"ReferenceError: \"window\" is not defined. (/SuiteScripts/AgJunction/AgBRAIN/xml-js.min.js#1)","stack":[]}
s
JSONIX?
I used it a lot in SS1, though I admit I can't recall if i've used it in a SS2 script yet.
it was the most robust bi-directional lib I found
t
seems a little complicated with the context and marshalling - I just need a function to convert between the two datatypes
if you have any code snippet of the usage in 1.0 that would help me wrap my brain around this lib
I would really appreciate it
s
I'll try and dig something up. I agree it has a bit of a learning curve, but it pays off, especially if you get into any situation where you need some control over the serialization/deserialization process