in ss2.0 it's ``` define(['path/to/x2js'], functio...
# suitescript
j
in ss2.0 it's
Copy code
define(['path/to/x2js'], function(X2JS) {
  function whatever() {
    var x2js = new X2JS();
    var xml = x2js.json2xml_str(your javascript object);
  }
});