谁能告诉我如何在flutter中解析对象数组的数组?当我解析json时,我得到的错误是type List<dynamic> is not a subtype of type Map<String, dynamic>.我正在尝试从API中获取要在屏幕上显示的数据,以便稍后构建一个GridView来显示所有产品及其各自的价格。我从flutter文档中复制了大部分代码:https:
我想解析一个由数组组成的复杂JSON API,它显示了以下错误。API有天气的详细信息,我想在控制台中显示时间和波高。<String, dynamic>' is not a subtype of type 'List<dynamic>'
E/flutter ( 5675): #0 _JsonDemoState.getJsonDatapackage:bottom_nav/APISample/JsonParsing