Questions
When the result of API data acquisition is JSON with the following structure,
In case you want to get only "Text 3" in the dictionary acquisition.
Could you please tell us how to do this or if you have a close sample?
API Response (JSON)]
{
"variables": [
{
"number": "1",.
"text": "text1"
}, }
{
"number": "2",.
"text": "text2"
}, }
{
"number": "3",.
"text": "text3"
}
]
}
Answer.
Converts JSON format values to dictionary and
There are two ways to obtain arbitrary values from it.
1. Use iteration to get the target value from each element
2. Store dictionary in DB and retrieve target value
Please refer to the following application
Sample app download link
For information on how to open the sample application, seethis way (direction close to the speaker or towards the speaker)