Simple Json parser and Stringyfier, See: http://www.json.org/
Moo.js, Function.js, Array.js, String.js, Element.js
Valerio Proietti, http://mad4milk.net
MIT-style license.
Json.js | Simple Json parser and Stringyfier, See: http://www.json.org/ |
Json | Simple Json parser and Stringyfier, See: http://www.json.org/ |
Properties | |
toString | Converts an object to a string, to be passed in server-side scripts as a parameter. |
Functions | |
evaluate | converts a json string to an object. |
Simple Json parser and Stringyfier, See: http://www.json.org/
Properties | |
toString | Converts an object to a string, to be passed in server-side scripts as a parameter. |
Functions | |
evaluate | converts a json string to an object. |
Converts an object to a string, to be passed in server-side scripts as a parameter. Although its not normal usage for this class, this method can also be used to convert functions and arrays to strings.
obj | the object to convert to string |
A json string
Json.toString({apple: 'red', lemon: 'yellow'}); "{"apple":"red","lemon":"yellow"}" //don't get hung up on the quotes; it's just a string.
converts a json string to an object.
evaluate: function( str )
function $A( array )
returns the element passed in with all the Element prototypes applied.
function $( el )