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:
here is my solution :) At first you need to import the convert package :
import 'dart:convert'; var res = json.decode(response.body);
then you can get values by key, like below:
print(res["message"]);