How to decode JSON in Flutter?
The question is simple, but the answer isn't, at least for me.
I have a project that uses a lot of JSON Strings. Basically, the entire communication between the app and the server is through JSON.
I have been using JSON.decode(json_string)
to deal with it, but today I updated the Flutter core (0.5.8-pre.178) and JSON.decode isn't available anymore.
I went to the Flutter Docs to seek help, but it still says to use JSON.decode.
So, how to decode JSON in Flutter from now on?
question from:
https://stackoverflow.com/questions/51601519/how-to-decode-json-in-flutter 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…