Hi,

I am currently using ERRest to output some fairly simple JSON describing a 
user. It looks like this:

[{
        "id":1,
        "type":"User",
        "creationDate":"2011-02-11T10:20:48Z",
        "email":null,
        "lastLogin":null,
        "password":"W6ph5Mm5Pz8GgiULbPgzG37mj9g=",
        "username":"charles"
}]

I'd like it to look like:

{"User":[
                {       
                "id":1,
                "type":"User",
                "creationDate":"2011-02-11T10:20:48Z",
                "email":null,
                "lastLogin":null,
                "password":"W6ph5Mm5Pz8GgiULbPgzG37mj9g=",
                "username":"charles"
                }]
}

I'm assuming this is a pretty simple configuration change on the 
net.sf.json.JSONSerializer, but I can't see it.

Am I trying to do something out of the ordinary?

Cheers,
Charles

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to