Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vjeux/xson
Smallest JSON equivalent in XML
https://github.com/vjeux/xson
Last synced: about 1 month ago
JSON representation
Smallest JSON equivalent in XML
- Host: GitHub
- URL: https://github.com/vjeux/xson
- Owner: vjeux
- Created: 2013-02-18T23:22:25.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-19T01:59:03.000Z (almost 12 years ago)
- Last Synced: 2024-04-14T15:07:25.108Z (9 months ago)
- Size: 145 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Smallest JSON equivalent in XML
[Read the full explanation on my blog](http://blog.vjeux.com/2013/xson-smallest-json-equivalent-in-xml)
## Get XSON
```html
```
## Usage
### stringify
```javascript
XSON.stringify({"table":{"achievement":{"column":"instance","ascending":true}}}, null, ' ')
// Output:
```
```xml
instance
```
### parse
```javascript
XSON.parse('instance')// Output:
{
"table": {
"achievement": {
"column": "instance",
"ascending": true
}
}
}
```