Essential JSON
2016-08-23
0 0 0
no vote
Other
Earn points
It is a small but powerful JSON library written in Javascript. In order to provide "prototypal chainability", it extend the object prototype to add a new method call "$" which can set/get any properties of a JSON object. The JSON to String and vice versa conversion is very simple.
Features
- Convert JSON into String
- Convert String into JSON
- Support Javascript Native Type: Date, RegExp
- Add a property function called "$" which extends any property into chainable setter/getter function
- 2K in file size
Basic Usage
Convert JSON into String
- Use the JS() method:
- var str={age:15,name:{firstname:"Peter",lastname:"Chan"}}.JS(); ### Convert String into JSON ###
- Use the JSON() method:
- var obj='{age:15,name:{firstname:"Peter",lastname:"Chan"}}'.JSON(); ### Extend the properties of a JSON ###
json
必要
Related Source Codes
workflow
0
0
no vote
VB parsing JSON
0
0
no vote
c++ TestJson
0
0
no vote
Necessary information required with the new born
1
0
no vote
Json parser implemented in C
0
0
no vote
No comment