Does anyone know why ParseJSON handles this properly:
[
{
"City": "Boston",
"Team": "Red Sox"
},
{
"City": "New York",
"Team": "Yankees"
}
]
But not:
{ "Teams": [
{
"City": "Boston",
"Team": "Red Sox"
},
{
"City": "New York",
"Team": "Yankees"
}
] }
Both are valid json according to http://jsonlint.com/ but the latter causes a TypeMismatchException.