Oded Hassidi
2012-01-05 10:04:15 UTC
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
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