|
Hi,
Does anybody have json_encode and json_decode functions?
Today I use a lisp-type-notation, or csv, to communicate between Autocad and data files.
But JSON really is superior. It's compact, and can be read directly by php/javascript, so you can link this data to databases, to websites, ...
Also, it's quite human-readable (well ... it's programmer-readable )
----
In JSON:
- this is an object: {}
- this is an array: []
example of a JSON string (a list of classmates):
[{name:"Johny",age:15,classes:["math","geography","English"]},{name:"Freddy",age:16,classes:["math","history","archeology"]},{name:"Susan",age:16,classes:["physics","biology"]}] |
|