Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
}
}
}
```