Open dsojevic opened 2 weeks ago
@dsojevic Thank you for reporting this issue! Our team will look into it and get back on this.
@tanys123 Do you have additional insight into this? I talked with @schaferyan about this, and we think this may be by design as we probably render escaped characters for readability, but wanted to confirm.
For further context, you can see the characters escaped correctly in the playground by enabling "Show raw JSON" in "Tools":
I talked with @schaferyan about this, and we think this may be by design as we probably render escaped characters for readability, but wanted to confirm.
The reason I initially came across this was that I was copying a fragment of the response to test with and it came back as unparseable JSON due to the unescaped quotes.
If the escape characters aren't displayed by design, I think that's fine. However, I'd strongly suggest keeping them in the HTML and hiding them as you would with screenreader-only text so that it still results in valid JSON if you copy + paste a section of the response from the playground (not in raw JSON mode).
Alternately, you could display the escape character and lowlight it so it's "out of the way" for readability, but still present for validity of the structure, eg.
@dsojevic Thank you for your suggestion! We will take it into consideration.
In the Playground (and in the embedded playgrounds in the API documentation), double quotes are not escaped in the resulting values:
The actual JSON returned from the API has these values correctly escaped, so this is a Playground-specific display issue:
Diff of the specific example highlighted here:
Search Inspect | Playground