I\'m trying to load a json file from a URL and parse it within Dart. So I had tried the following code as suggested from some links when I google for it:
Simply use json of the dart:convert package. Here is an example :
import 'dart:convert'; main() { final myJsonAsString = '{"a": 1, "b": "c"}'; final decoded = json.decode(myJsonAsString); .... }
See Parsing JSON for more details.