Opened 11 years ago

Closed 11 years ago

#5790 closed enhancement (fixed)

[patch][cla] Advanced JSON {de}serialization support

Reported by: kriszyp Owned by: Dustin Machi
Priority: high Milestone: 1.1
Component: Dojox Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description

I would like to add advanced JSON {de}serialization capabilities. This augments the dojo.toJson and dojo.fromJson with capabilities to handle JSON referencing (http://www.json.com/2007/10/19/json-referencing-proposal-and-library/), symmetrical date conversion with optional advice from JSON Schemas, and other capabilities which are beyond the scope of the JSON capabilities in dojo base. This will be a dependency of the new JsonRestStore? service which is dojo.data API implementation for the new REST service which is covered by the ticket #5712 (http://trac.dojotoolkit.org/ticket/5712). By providing this functionality at the serialization level, other services can utilize the referencing and date resolution capabilities. I propose adding this as a package at dojox.json.ref, but certainly would be willing to put it elsewhere.

Attachments (1)

json.zip (7.8 KB) - added by kriszyp 11 years ago.
Implementation for dojox.rpc

Download all attachments as: .zip

Change History (5)

comment:1 Changed 11 years ago by kriszyp

I think this may be better refactored to be part of dojox.rpc (as dojox.rpc.JsonReferencing?)

Changed 11 years ago by kriszyp

Attachment: json.zip added

Implementation for dojox.rpc

comment:2 Changed 11 years ago by dante

Component: GeneralDojox
Owner: changed from anonymous to Dustin Machi
Summary: Advanced JSON {de}serialization support[patch][cla] Advanced JSON {de}serialization support

comment:3 Changed 11 years ago by Dustin Machi

(In [12525]) updates to rest for new rpc service as well as JsonReferencing? and some rest stores based on rpc. The rest stores can (should?) be moved to dojox.data at the right time. patches from Kris Zyp (CLA on file). refs #5790. Some of the stores still have some dojo.style issues, but this checkin bypasses them with !strict since they are not yet in use and I need to collaborate with the author some more on them

comment:4 Changed 11 years ago by Dustin Machi

Resolution: fixed
Status: newclosed

fixed, still some further work on new stores, but they can be tracked separately.

Note: See TracTickets for help on using tickets.