简体   繁体   English

如何根据 flutter 中的 id 解析 json 数据

[英]how to parse json data based on a id in flutter

how to parse JSON data based on a id in flutter?如何根据 flutter 中的 id 解析 JSON 数据? 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我想解析 JSON 文件中的特定数据,但 JSON 文件返回数据列表,所以我想比较这个 JSON 文件 ID 到另一个变量

you can use this link to generate Dart Classes for you JSON data and parse them as dart object.您可以使用此链接为您生成 Dart 类 JSON 数据并将它们解析为 dart ZA8CFZF6DE6331C49EB26 After that you can get data with specific ID or any other business logic.之后,您可以获取具有特定 ID 或任何其他业务逻辑的数据。

https://app.quicktype.io/ https://app.quicktype.io/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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