Ticket Created
over 3 years ago

CIQQA-903

Processing JSON with missing root

The following (which is valid JSON) returns  INVALID_HTTP_BODY_IN_NETWORK_RESPONSE.

It's missing the root node but is still valid JSON. Missing the root node is fairy common. So, it should be able to be processed by IQ.

[
{
"name":"aaaa"
},
{
"name":"bbbb"
}
]

The following  is not missing the root node (and works).

 

{
"list" : [
{
"name":"aaaa"
},
{
"name":"bbbb"
}
]
}

Parents
  • The bottom line is that the code that processes the HTTP response body for a JSON request requires that data to represent a JSON object.

    This is a choice. It appears the name of the object member can be empty. The code that processes the root could give the object an empty name.

Comment
  • The bottom line is that the code that processes the HTTP response body for a JSON request requires that data to represent a JSON object.

    This is a choice. It appears the name of the object member can be empty. The code that processes the root could give the object an empty name.

Children
No Data