stig/json-framework — Issue #118: Array of Objects Being Parsed as an Array of Strings
Author: StefanBossbaly
Created: 2012-01-12 21:08:24+00:00
State: open

I am not sure wether this is a bug or not so please correct me if I am wrong. Here is the JSON which causes the issue to occur.

{
"Title": "Welcome",
"Description": "blah, blah ... blah",
"Content": [
{
"Name": "Something One"
},
{
"Name": "Something Two"
},
{
"Name": "Something Three"
}
]
}

When parsing the JSON I am expecting the Content field to be an array of dictionaries, since the content field is an array of objects. Instead the result is an array of strings. I find this to be confusing because an array of strings implies the JSON below.

{
"Title": "Welcome",
"Description": "blah, blah ... blah",
"Content": [
"Something One",
"Something Two",
"Something Three"
]
}