
Flutter: How to work with JSONs like a PRO
Before being a Flutter developer, I came from the JavaScript world. One thing I missed the most is the mighty JavaScript packages on npm
, especially lodash
and ramda
, they give us great convenience on accessing nested JSON objects.
When developing Flutter applications, we often need to parse JSON objects from API responses, then access or manipulate them accordingly. Sadly dart language’s support for Map
objects is not very rich, therefore I created this package: map_enhancer
.
Usage
Actually this package is not restricted to Flutter and JSON(Map<String, dynamic>)
objects, you may use it in any dart projects, or on any dart’s native Map
objects.
And that’s it. Visit pub.dev to install this package, or submit issues/pull requests on GitHub.
Do you know you can clap up to 50 times for an article? Go smash that button!