------- Quoting the parent:
This turns into this beautiful JSON:
[
"users": [
{
"id": "abc",
"phoneNos": [
{ "type": "home", "value": "123456789" },
{ "type": "work", "value": "321654987" }
]
}
]
]
------ ... endquote.That's a strange, contrived example. In Javascript, I would write it like this:
user = {id: "abc", homePhone: "123456789", workPhone: "321654987"};
(And the next time that object goes across the network, my libraries will be nice enough to put the quotes around the keys for me.)