JSON is a cornerstone in most Android apps, but how do you parse JSON in Dart and Flutter?
As mentioned in my “4 tips to boost your software development career” post, I’ve been experimenting with Flutter recently. Dart, the language used by Flutter, comes with a good library to parse JSON (dart:convert) but after having used gson for years in my Android apps, I had to relearn how to parse JSON.
To follow the code tutorial, create a new app as follows.
flutter create parsejsonexample
If you’re unsure how to set up a Flutter app, check out Getting started with Flutter official tutorial.