users@jersey.java.net

[Jersey] Question regarding json and attributes

From: Oded Hassidi <oded.hassidi_at_gmail.com>
Date: Thu, 5 Jan 2012 12:04:15 +0200

Hi all,

I have Jersey and JAXB used for translating json and xml to objects.
My objects define attributes and in json they go out with @ sign. In json
as far as I know there is no importance to the order of the name, value
pairs.

The question is: if we define attribute do they break the above assumption?
is this: {"event":{"state":"ended","@type":"state"}}
different from this: {"event":{"@type":"state", "state":"ended"}}
when jersey build the java object?

Thanks