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:
in my case
JSON.decode
didn't work.
Instead I had to use :
import 'dart:convert' as JSON; final json=JSON.jsonDecode(myJsonAsString);