README
Usage
You can open .json
file, edit and save with simple methods
var json = ; var manifest = json;manifestversion = ++manifestversion;manifest;
Methods starts with $$
does not save in json file.
Save as
var file = json; file;file;
Insert and merge
var bastard = json; bastard; // now bastard.name === "John"bastard; // now {name: "John", last: "Snow"}; bastard;
Clean objects
In clean mode magic $$
variables does not creating.
Use json.save()
, json.merge()
, json.saveAs()
, json.insert()
.
var ob = jsonclean; // or json.clean.new({}) or json.clean.new('path/to.json');obname = "ob";obdescription = "ob pro comfort";obversion = "10.0.8"; typeof ob$$saveAs === "undefined"; // truejson;