A parser that converts SJSON into JSON.
npm install --save simplified-jsondescription = "A sample, json document."
author = {
name = "Autodesk"
}
keywords = ["sample", "sjson"]
Parse a sjson string and return a javascript object
varSJSON=require('simplified-json'),fs=require('fs');fs.readFile('sample.sjson','utf8',function(err,data){if(err){returnconsole.log(err);}console.log(SJSON.parse(data));});Parse a javascript object and return a sjson string
varSJSON=require('simplified-json'),fs=require('fs'),data={keywords: ["sample""sjson"]};fs.writeFile('sample.sjson',SJSON.stringify(data),'utf8',function(err){if(err){returnconsole.log(err);}});- Autodesk® Stingray® uses SJSON to express data in many of its text-based resource files.