grpcui icon indicating copy to clipboard operation
grpcui copied to clipboard

JSON payloads with keys with period throw a parseerror

Open stevesuh opened this issue 3 years ago • 4 comments

Screen Shot 2021-10-08 at 3 56 13 PM

https://jsonformatter.curiousconcept.com/#

All 4 JSON specifications support periods in keys such as matter.

stevesuh avatar Oct 08 '21 19:10 stevesuh

Can you describe the context?

Was the period in the request payload? Or was it in the response? Can you provide an example payload?

jhump avatar Oct 08 '21 20:10 jhump

In the response.

Something like:

{ 
found: true,
scores: {
   brandScores: {
      matter.: 42
   }
}
}

stevesuh avatar Oct 08 '21 21:10 stevesuh

This works when I make a client and call directly from Go.

stevesuh avatar Oct 08 '21 21:10 stevesuh

Can you also check the browser JS console, to see if there is more information in the response? Also, can you use the browser's network inspector to get the actual response that the server sent?

jhump avatar Oct 08 '21 21:10 jhump