Hi,
after upgrading xstream from 1.3.1 to 1.4.2 and jettison 1.0.1 to 1.2 (or 
1.3.1) the generated json string changed. I could also change the javascript 
processing of the json string, but the new version looks strange to me.

I try to serialize the following object tree:

class userlist {
        private List<User> users;
}

class User {
        private name;
        private vorname;
}


After the upgrade the json string contains collections at two different levels.

Old
{"userlist":{"users":{"user":[{"name":"x","vorname":"y"},{"name":"x","vorname":"y"}]}}}

New
{"userlist":{"users":[{"user":[{"name":"x","vorname":"y"},{"name":"x","vorname":"y"}]}]}}

Is this ok and i should change my code? or is this a bug?

Thanks
Andi



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to