Multiple dictionaries selection with the same tag

When the following blocks work, the result is "Samsung Galaxy A02". It just reads the trailing value. How can I read all "Name" tags? Thanks.

{
  "RECORDS": [
    {
      "id": "1",
      "url_hash": "9ff",
      "brand_id": "1",
      "name": "Nokia 3210"
    },
    {
      "id": "2",
      "url_hash": "714ffc005",
      "brand_id": "1",
      "name": "Nokia 5110"
    },
    {
      "id": "3",
      "url_hash": "74172986bf",
      "brand_id": "1",
      "name": "Nokia 6110"
    },
    {
      "id": "99555",
      "brand_id": "4",
      "url_hash": "86bf",
      "name": "Samsung Galaxy A02"
     } 
    ] 
}

This should return all your names to a label

2 Likes

First of all, thanks, this method solved my problem, but I did not understand the logic of it. Why do I associate all "name" with "label"? Isn't "name" already a "label"?

Tim advised you to use that block inside the for each item in the list

If you want to get all the names as a list then use this block. No need of for each items in the list straight away use

Set label text to (this block)

2 Likes

You were trying to set the output to a label, so that is what I did :wink:

If you want a list, then add each value to a list

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.