Results 1 to 2 of 2

Thread: JSON Jackson question ...

Hybrid View

  1. #1

    Default 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. #2

    Default 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 !

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •