One thing I noticed is that neither the sling.json, nor the actual json library account for handling dates (ex: json.put("myDate", java.util.Date)). What is the preferred method for using a date type with json property descriptors? There are some json java implementations which will serialize java dates into the Date(xxx) in the json string. I haven't looked through the code for the json parser to see if theirs handles it properly, but through testing, I haven't gotten it to work with the sling json.

On Sep 18, 2009, at 6:36 AM, Peter Chiochetti wrote:

Am 2009-09-18 15:06, schrieb Bertrand Delacretaz:

In theory yes, but IIRC the original doesn't satisfy our requirement
for respecting sort order of properties. Not sure about the details,
I'd need to dig into our archives to provide more details.

In theory also, the only way of passing data in json without losing order is an array. Order matters for eg. jcr childnodes but does not matter for jcr node.properties.

--
peter

Reply via email to