Balamurugan
unread,Jul 9, 2012, 10:11:58 AM7/9/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to api-...@googlegroups.com
Hi,
I am having an idea to provide the JSON response in the form of array rather than Object (Key value map)
For example,
Consider a response for the list request ,Instead of sending response like
[
{
"id" : 123,
"name" : "Chessboard",
"rate" : 100.00
"description" : "description of board"
},
{
"id" : 456,
"name" : "Rhymes CD",
"rate" : 200.00
"description" : "Rhymes"
}
]
planning to send
{
"header" : [ "id", "name", "rate", "description"],
"data" : [
[123, "Chessboard", 100.00, "description of board"],
[456, "Rhymes CD", 200.00, "Rhymes"]
]
}
By this. I am able to get considerable size reduction for the response from server.
But unfortunately, I am not see such a response from any of the good API providers that we refer.
Am I missing anything? Is there any serious disadvantage of using array of data with header separated?
Please suggest.
Thanks
Balamurugan