-
Aug 17th, 2010, 10:25 AM
#1
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 ?
-
Aug 17th, 2010, 11:58 AM
#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 !
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
-
Forum Rules