Can you help interpret json answer

Just learning about JSON, and I am getting a response, part of which I have no idea how to use. This part of the answer gives me flag info for a location, but I do not know how to get the flag from this answer:

“country_flag_emoji_unicode”:“U+1F1FA U+1F1F8”

If you know JSON this should be trivial, right?

There are 2 emojis there:

Sorry, I do not understand how to use your answer.

In the first line of the response (“country_flag_emoji”:"\ud83c\uddfa\ud83c\uddf8"), how do I convert that code to the unicode character or picture that shows the flag?

In the second line I can see that there are two codes (“U+1F1FA U+1F1F8”). Again, how do I convert that to an emoji or string or picture?

Just follow Kem’s advice

You don’t need to do that yourself. Use ParseJSON to convert the string to a Dictionary or Array, then drill down to the country_flag_emoji key. It will already be an emoji there.

1 Like

Interesting, I just tried with another response, and the emojis E and C gave me the emoji flag for Ecuador !!

Thanks Alberto and Kem. Both answer helped me perfectly!!!

1 Like