How to extract info from this JSON

Are you using the actual API JSON response this time or are you using the text that you posted above? Because the text above has smart quotes and won’t work properly. If you’re testing this with text in a variable as @muneer did, use this version without smart quotes:

[{"name":"Kampala","local_names":{"ky":"Кампала","uk":"Кампала","en":"Kampala","ko":"캄팔라","fr":"Kampala","cv":"Кампала","ru":"Кампала","tg":"Кампала","bo":"ཀམ་པ་ལ།","he":"קמפלה","fa":"کامپالا","mk":"Кампала","pl":"Kampala","ku":"Kampala","ur":"کمپالا","zh":"坎帕拉","bg":"Кампала","ka":"კამპალა","ps":"کامپالا","ar":"كمبالا","am":"ካምፓላ","hi":"कंपाला","ug":"كامپالا","ht":"Kanpala","hu":"Kampala","eo":"Kampalo","sv":"Kampala","ta":"கம்பாலா","mr":"कंपाला","kn":"ಕಂಪಾಲಾ","pt":"Kampala","oc":"Kampala","so":"Kambaala","sr":"Кампала","be":"Кампала","de":"Kampala","el":"Καμπάλα","ja":"カンパラ","hy":"Կամպալա","th":"กัมปาลา"},"lat":0.3177137,"lon":32.5813539,"country":"UG","state":"Central Region"}]

But more importantly, you’re not putting together the two suggestions that have been given in this topic: (1) use the get object from JSON block and (2) use the in list get block. Each of your most recent screenshots uses one of these suggestions but not both which is why this isn’t working for you and you’re getting a null response.

You need to follow @muneer’s example for setting the label’s text exactly and double-check that all of the blocks match:

If you want to combine them another way, you can get the property “[1].name” of object and not use the in list block at all but you still need the get object from JSON block. Using [1] indicates the first list item.

If you’re still stuck, post a screenshot of your updated blocks

2 Likes