A mojangson parser written in node.js
$ npm install node-mojangson
node-mojangson is a mojangson parser.
Mojangson is mojang's variant of json. It is basically json with the following changes :
[0:"v1",1:"v2",2:"v3"])[5,4,3,] and {"a":5,"b":6,}){mykey:myvalue}){number:5b})This parser is build using jison.
See the grammar and the examples in the test for more information.
Usage example :
var mojangson=require("mojangson");
console.log(mojangson.parse("{mykey:myvalue}"));
The provided method mojangson.parse return a javascript object corresponding to the mojangson passed in input.
© 2010 - cnpmjs.org x YWFE | Home | YWFE