I have java string like below and I am trying to convert to JSONArray using org.json library.
String content = "[{ \"message\":\"This year\\u2019s #SexiestManAlive goes to @chrisevans \\uf389\\uf60d \\u2026they did this one for us \\uf979\\n(\\uf4f8: @mschwartzphoto x @people )\"}]"
JSONArray jsonArray = new JSONArray(content);
When I am converting this to JSONArray some extends emojis are not converting (\uf4f8 ,\uf389\uf60d \u2026". )
it looks like this after converting this msg to jsonarray
"This year’s #SexiestManAlive goes to @chrisevans …they did this one for us 凉\n(: @mschwartzphoto x @people )"
How can we handle this ? please need help on this.
For Reference:: actually text message in API looks like this This year’s #SexiestManAlive goes to @chrisevans …they did this one for us (: @mschwartzphoto x @people )