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 of course bug is bug especially that this code

    var d = { "" => "xx"};
    SYS.println(d + " " + d.get(""));

    shows

    {=>xx} xx

    This is not a bug. The output generated by converting a Dictionary to a String is _not_ JSON. It is simple as that.

Comment
  • But of course bug is bug especially that this code

    var d = { "" => "xx"};
    SYS.println(d + " " + d.get(""));

    shows

    {=>xx} xx

    This is not a bug. The output generated by converting a Dictionary to a String is _not_ JSON. It is simple as that.

Children
No Data