How can access value for lists in lists


heed for help pls
I can access value for key1 but not for key2 (list in list key/value pair)

Temporarily use global variables to be able to
use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

What is the value of label4 and label5?

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Here are three ways you could do it:

2 Likes

10x for help!
the string that i resieve from api is more complex:
------------------------------------
{"results":[{"dominant_emotion":"happy","emotion":{"angry":2.1808392765276796e-10,"disgust":3.062661153870799e-22,"fear":2.5207649688311143e-12,"happy":99.98773336410522,"neutral":0.0005876329851162154,"sad":9.060606540219063e-11,"surprise":0.011675977293634787},"region":{"h":330,"w":330,"x":310,"y":144}}]}
--------------------------------
[....] makes things more complex

when i want to get value for key="angry" for example that works

I don't understand what you want that isn't already being done for 'angry'.
The same structure should work for 'disgust' or 'fear'.

I have a general purpose JSON to CSV table converter in stock, if that would help.
extract_table.aia (4.0 KB)