https://github.com/caplin/xmljsonutility
Caplin's fork of a JSON<->XML library.
https://github.com/caplin/xmljsonutility
Last synced: 3 months ago
JSON representation
Caplin's fork of a JSON<->XML library.
- Host: GitHub
- URL: https://github.com/caplin/xmljsonutility
- Owner: caplin
- License: other
- Created: 2013-08-22T13:01:04.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-11-17T06:01:25.000Z (over 8 years ago)
- Last Synced: 2024-12-28T19:52:03.418Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 148 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# XMLJsonUtility
This is [Caplin's](http://www.caplin.com) fork of the [this](http://goessner.net/download/prj/jsonxml/) 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](http://goessner.net) and can be found [here](http://goessner.net/download/prj/jsonxml/).
## 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](http://pivotal.github.io/jasmine/) testing framework.## License
Licensed under LGPL/2.1. See the [LICENSE](https://github.com/caplin/XMLJsonUtility/blob/master/LICENSE.md) file for details.