Open
Description
Headline doc entry for HttpRequest: https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:html.HttpRequest
> The simplest way to get the contents of a text file, such as a JSON-formatted file, is with getString. [example follows]
Docs for getString (same page):
> The server response must be a text/ mime type for this request to succeed.
Official mimetype for JSON: http://en.wikipedia.org/wiki/JSON#MIME_type
> The official MIME type for JSON text is "application/json".
These three facts put together make zero sense. Either getString should work with responses that aren't "text/" (makes the most sense), or the docs shouldn't recommend the use of this method for JSON.