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
  • But we have to remember that dictionary isn't any standard outside CIQ and JSON is. In many situation is impossible to change respond because it is external service - nobody will change service just because dictionary.

    So if dictionary key can be empty string I think that during process changing from json to dictionary empty key can be easy added.

Comment
  • But we have to remember that dictionary isn't any standard outside CIQ and JSON is. In many situation is impossible to change respond because it is external service - nobody will change service just because dictionary.

    So if dictionary key can be empty string I think that during process changing from json to dictionary empty key can be easy added.

Children
No Data