RESTClient icon indicating copy to clipboard operation
RESTClient copied to clipboard

JSON Response Body Highlight is invalid in particular case

Open briceruzand opened this issue 12 years ago • 4 comments

This JSON response body :

{
  "result": {
    "status": "done",
    "expressions": [
      {
        "expression": "toto",
        "length": 1
      },
      {
        "expression": "titi",
        "length": 2
      }
    ]
  }
}

Is render in "Response Body (Highlight)" tabs as :

{
  "result": {
    "status": "done",
    "expressions": [
      [
        "toto",
        1
      ],
      [
        "titi",
        2
      ]
    ]
  }
}

briceruzand avatar Dec 03 '12 09:12 briceruzand

Thanks for reporting, I will fix this as soon as possible.

chao avatar Dec 04 '12 00:12 chao

same issue here...

grischka avatar Mar 24 '13 21:03 grischka

I know this is an old issue, but it's really annoying and dangerous when testing APIs

rbarriuso avatar Apr 19 '16 11:04 rbarriuso

Our team just ran into the same bug (a nested object in an array, with a key named "length"), which cost us a lot of time trying to sort it out. Any chance we can get this fixed? As @rbarriuso notes, it's very dangerous when testing APIs. Thanks.

strags11 avatar Aug 08 '17 14:08 strags11