简体   繁体   中英

how to parse json data based on a id in flutter

how to parse JSON data based on a id in flutter? I want to parse a specific data from a JSON file but the JSON file returns a list of data so I want to compare this JSON file Id to another variable to parse that specific data please help

you can use this link to generate Dart Classes for you JSON data and parse them as dart object. After that you can get data with specific ID or any other business logic.

https://app.quicktype.io/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM