Receive and send values from the App Inventor

Hello, I'm an undergraduate using the App Inventor.
I want to get only the con value of 1.

But I'm getting all the values. Can't I get only con for this separately?

I will provide the necessary information. Help me...
Thank you for your help.

you are receiving a JSON response
there are several possibilities to get a specific value...
for example decode it into a list of lists using the JsonTextDecode method from the web component and then use the loopup in pairs block together with that list of lists
How does the lookup in pairs block work?


Welcome Chan.

You requested the json using the Get. You need to get the value associated with con, which in this case is 1.

If you post the json as text here, someone will show how to capture the value. :slight_smile:
It is not difficult but the whole json text is needed to show the exact code required.

This might be as simple as

where you place the json text in the blank text Block above. :astonished:

Thank you very much for your answer.
I got this result value.

And I tried to look up,

We are getting the same result value as above.

I feel like I'm using something wrong.
Can you point it out to me?

Thank you very much for your answer.
But if you put a fixed json value, you can get a value.
The result value keeps going up to the server.
Therefore, I think the solution you suggested is a little difficult because the rn value keeps changing.
Is there any other way?

Thank you for your help.

This might work.

You might need "" around the first csv key path item. (msm:cin)
(pardon the typo, I would have copied text if it were given.)

Thank you very much for coming up with a solution.
You are a god.
I'm going to study how to send it now.

Thank you very much.

And thank you very much to those who helped us!!

I will post the code because I think there might be someone who will have the same problem as me.

Why do you JSONTextDecode twice?

Thank you for pointing that out.
I understood after looking at my block code one more time.

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