This is Caplin's fork of the this open source library that provides two functions to convert XML to JSON and JSON to XML.
We wrapped the two functions in it's own namespace to avoid introducing two new global functions. We also formatted the code to be (more or less) written in our style. We added JsDoc documentation, extracted inner functions so they are not redefined every time the two functions are called. And we added Jasmine tests. Apart from that, the code is the same as the original.
The original code was created in 2006 by Stefan Goessner and can be found here.
First include the caplin/core/bootstrap.js
file which will define the caplin.core
root namespace object, then include whichever file you wish to use.
Open SpecRunner.html
in your browser. This will run the tests in spec/
with the Jasmine testing framework.
Licensed under LGPL/2.1. See the LICENSE file for details.