tl24 / jsonexserializer

Automatically exported from code.google.com/p/jsonexserializer
1 stars 1 forks source link

Create compliant JSON always #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Try to come up with ways of removing the extended syntax and always create 
compliant Json.

Examples:

1) Instead of casts: (MyType) { a: 1, b: 2 }
   use type identifier: { __type: "MyType", a: 1, b: 2 }
   for lists: { __type: "MyList", items: [ 1, 2, 3 ] }
2) For references use nested syntax:
     { "$ref": "a/b/c" }

Any conventions should be configurable if possible.
Attempt to use any industry or widely adopted standards.  Review syntax for 
Jquery, MongoDB, Microsoft, etc.

Original issue reported on code.google.com by elliott....@gmail.com on 24 Jan 2013 at 8:30