I don't get it, the alternative way of parsing JSON is "not parsing it"?

It is error prone to manipulate and render plain objects in our application, because it's schemaless.

Imagine when the format of response is changed, you will have to check every screens/widgets to see if they are affected, what a chaos!


Actually you don't have to convert the whole JSON to object of your own class, just the necessary information for your application. Also you can write some handy methods to it. When the JSON format is changed, just update your class and the static code analyzer will tell you which files need to be updated.

With all these pros and you still tell people not to parse JSONs?

A JavaScript/Node/Flutter developer who love technical stuffs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store