How do you parse a JSON string in MIT App inventor?

I have this FoodRequests in FBD:
image
When I read it back like this
image
I get a JSON string like {"user1":""NonVeg-HSL, Dal-LSL & DAL-HSL, 2, .....user2 .... user3...""}
Question is how do I parse this JSON string to get user1 and the corresponding properties, user2 and properties, user3 ... basically dump of ProjectBucket FoodRequestDB so that I can fill the appropriate Textboxes/Labels to display them to the user in a neat order.
Please advice thanks

The Web component has a block, DecodeJSONWithDictionaries
that should work for you.

1 Like

Thanks ABG I had seen the Web component in plenty examples but had not realized it was a component. Today I finally found it under Connectivity. Then there are lot of DB's under Storage too. So far all my work was centered around the Experimental - FirebaseDB.

Thanks for the response.

I shall have to expand my future recommendations of the Web component to include mention of which Drawer has it, like the Clock component in the Sensors drawer.

HOW TO PARSE THIS: semesterUrls using jsonParse extension
and show as a list

[
  {
    "branchCode": "IOT",
    "branchName": "Internet of Things",
    "semesters": {
      "semester1": "https://example.com/syllabus/iot/sem1.pdf",
      "semester2": "https://example.com/syllabus/iot/sem2.pdf",
      "semester3": "https://example.com/syllabus/iot/sem3.pdf",
      "semester4": "https://example.com/syllabus/iot/sem4.pdf",
      "semester5": "https://example.com/syllabus/iot/sem5.pdf",
      "semester6": "https://example.com/syllabus/iot/sem6.pdf",
      "semester7": "https://example.com/syllabus/iot/sem7.pdf",
      "semester8": "https://example.com/syllabus/iot/sem8.pdf"
    }
  },
  {
    "branchCode": "AIML",
    "branchName": "Artificial Intelligence & Machine Learning",
    "semesterUrls": [
      "https://example.com/syllabus/aiml/sem1.pdf",
      "https://example.com/syllabus/aiml/sem2.pdf",
      "https://example.com/syllabus/aiml/sem3.pdf",
      "https://example.com/syllabus/aiml/sem4.pdf",
      "https://example.com/syllabus/aiml/sem5.pdf",
      "https://example.com/syllabus/aiml/sem6.pdf",
      "https://example.com/syllabus/aiml/sem7.pdf",
      "https://example.com/syllabus/aiml/sem8.pdf"
    ]
  }
]

here my try blocks
image

Ask on Kodular.