jsonuri
3.4.4
is now available. Download our latest version today!
JSON URI
{ "id": "0003", "type": "donut", "name": "Old Fashioned", "ppu": 0.55, "batters": { "batter": [ { "id": "5001", "name": "None" }, { "id": "5002", "name": "Glazed" }, { "id": "5003", "name": "Chocolate" }, { "id": "5004", "name": "Maple" } ] } }
Repl→
get(data, 'batters/batter/0/id')
get(data, 'batters/batter/0/id/..')
set(data, 'batters/batter/0/id', '8888')
rm(data, 'batters/batter/0')
insert(data, 'batters/batter/0/id/..', {...}, 'before')
swap(data, 'batters/batter/0', 'batters/batter/2')
mv(data, 'name', 'batters/batter/1', 'after')
up(this.data, 'batters/batter/2')
down(data, 'batters/batter/2')
Fork me on GitHub