You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and the headers say that you are returning application/json. However, this looks to be JSON lines and not valid JSON. Is returning non-standard JSON the correct approach? I understand the merits of JSONL/NDJSON, but without any indication that it is in this format, it is pretty confusing.
The text was updated successfully, but these errors were encountered:
I looked into it. Unfortunately, the only two I've seen are the aforementioned application/x-ndjson and application/jsonl and they are both non-standard.
We want to stick with the current output of newline separated json, since it is a valid way of streaming json. But since there isn't a content type that matches this output, we'll just go with text/plain for now.
I tried out application/x-ndjson, but as you said, it's non-standard, and had some negative effects when viewing in the browser.
Doing a GET on index.golang.org/index returns something similar to
and the headers say that you are returning
application/json
. However, this looks to be JSON lines and not valid JSON. Is returning non-standard JSON the correct approach? I understand the merits of JSONL/NDJSON, but without any indication that it is in this format, it is pretty confusing.The text was updated successfully, but these errors were encountered: