Announcement Announcement Module
Collapse
No announcement yet.
JSON Jackson question ... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSON Jackson question ...

    A JSON question using a {"animal":"age"} object as an example;
    A Strict JSON array is say
    [{"animal":"cat","age":3},{"animal":"dog","age", 4}]
    Is there any way to to do
    [{"cat",3},{"dog",4}] and have Jackson parse this ?

  • #2
    Answer is use nested JSON arrays...

    Found a way myself ->
    For succinct JSON payloads with no wasteful name fields for passing logical objects...
    this wont work [{"cat",3},{"dog",5}]
    but [["cat",3],["dog",5]] does !

    Comment

    Working...
    X