Hacker News new | ask | show | jobs
by geraldhh 373 days ago
unformatted html with sugar is not really helpful to humans, is it?
1 comments

If the response is JSON where the JSON values contain HTML, then is the response "JSON" or "HTML".

I would call this response "JSON" not "HTML".

The JSON is unformatted, i.e., no "prettyPrint".

The text-only browser I use to read HTML works with this JSON, it is easy to read, because the JSON values contain HTML tags.