Skip to content

JSONplus is regular JSON data format extended with functions as data type.

Notifications You must be signed in to change notification settings

josipk/json-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Plus

JSONplus is extended JSON data format, extended with functions and regex. Such format is in fact JavaScript Object Literal without variable declaration. (Function as a data type in JSON format is not approved by "json.org")

Usage

You can load JSONplus source from external file using ajax:

    var obj = jsonPlus.get('source.json');
			
or You can simply parse JSONplus string source:

var obj = jsonPlus.parse('{"title": "JSONplus",' +
			 '"foo": function (a, b){ alert(a + b); },' +
			 '"array": [1,2,3,4,5], "boolean":true }');

Testing

"index.html" loads jsonplus from "source.json".
"index_parse_extend.html" parse jsonplus string demo.

Info

josip.kalebic[at]gmail.com

About

JSONplus is regular JSON data format extended with functions as data type.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published