Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1.2 KB

README.md

File metadata and controls

17 lines (11 loc) · 1.2 KB

XMLJsonUtility

This is Caplin's fork of the this open source library that provides two functions to convert XML to JSON and JSON to XML.

Origins

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.

How to use

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.

How to run the tests

Open SpecRunner.html in your browser. This will run the tests in spec/ with the Jasmine testing framework.

License

Licensed under LGPL/2.1. See the LICENSE file for details.