Closed stuarteberg closed 2 years ago
Looks like there's an additional issue besides the missing }
character. Here's an example:
$ URL='http://emdata5.janelia.org:8400/api/node/b31220/segmentation_annotations/keyvalues?json=true'
$ curl -X GET -H "Content-Type: application/json" --data '["22453", "12609"]' ${URL}
{"22453":{"body ID": 22453, "status": "Prelim Roughly traced", "user": "phillipse"},
I asked for two keys, but one of them doesn't actually exist. What should happen in that case? In the example above, only one result was returned, but it ends with a trailing ,
character, so merely appending a }
character won't result in valid JSON.
It looks like the very last byte is missing from the returned responses. Here's an example:
Notice that the response should end with TWO
}
characters, not one.