简体   繁体   English

MIT APP INVENTOR 2词典出现问题

[英]MIT APP INVENTOR 2 dictionary trouble

MIT APP INVENTOR 2 I have this problem: I have a dictionary with many sub-classes. MIT APP INVENTOR 2我有这个问题:我有一个包含许多子类的字典。 But I have no idea how I could access to specific data inside the dictionary. 但是我不知道如何访问字典中的特定数据。 For example a have the next list: 例如,具有下一个列表:

{
  "keystatus" : "valid",
  "status" : 0,
  "result" : [
    {
      "stores" : {
        "0" : {
          "category" : "",
          "min_price" : "64.90",
          "manufacturer" : "adidas",
          "url" : "https:\/\/www.rakuten.de\/%20produkt%20\/adidas-leonero-herrenschuhe-sneaker-2040331525.html?portaldv=6",
          "title" : "adidas Leonero Herrenschuhe Sneaker",
          "advertiser" : "Rakuten Deutschland GmbH",
          "currency" : "€",
          "max_price" : ""
        }
      },
      "details" : {
        "barcode_formats" : "EAN 4058025901204",
        "color" : "",
        "publisher" : "",
        "weight" : "",
        "actor" : "",
        "brand" : "adidas",
        "product_name" : "adidas Leonero Herrenschuhe Sneaker",
        "category" : "",
        "prod_details" : "",
        "manufacturer" : "adidas",
        "length" : "",
        "label" : "",
        "clothing_size" : "",
        "artist" : "",
        "height" : "",
        "model" : "",
        "width" : "",
        "director" : "",
        "genre" : "",
        "manufacturer_part_number" : "Adidas Leonero",
        "long_description" : "Nach 70 Jahren als einer der weltbesten Hersteller von FuBballschuhen hat adidas jede Menge Erfahrung gesammelt, wenn es um cleanen Sportstyle geht. Wir haben uns von einigen der legendärsten Designs aus unseren Archiven inspirieren lassen und m",
        "features" : "",
        "author" : ""
      },
      "reviews" : {

      },
      "type" : "EAN",
      "images" : {
        "0" : "https:\/\/images.barcodelookup.com\/9152\/91526482-1.jpg"
      },
      "barcode" : "4058025901204"
    }
  ]
}

I want to access to this part of the dictionary ["result"][0]["stores"]["0"]["title"] . 我想访问字典的这一部分["result"][0]["stores"]["0"]["title"] Any thoughts? 有什么想法吗?

All ideas are welcome. 欢迎所有想法。 Thanks 谢谢

You will have to learn how to work with lists and list of lists... 您将必须学习如何使用列表和列表列表...

See these examples: 请参阅以下示例:
How to work with Lists by Saj 如何使用 Saj的列表
How to work with Lists and Lists of lists (pdf) by appinventor.org 如何使用 appinventor.org 处理列表和列表列表 (pdf)
JSON and list of lists: example1 and example2 JSON和列表列表: example1example2

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

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