Should I highlight special characters in JSON?

I am sending JSON with a POST request on Android. And from the Android side, I will reproduce JSON. But I have a little question.

Should I avoid spatial characters in JSON? For example, çöşüğÇÖİŞÜĞ. It's necessary? After submitting the JSON, I will take with Android, and I will do something in Android. If I don't run away from special characters in JSON, can this make a mistake for me in Android?

Here is a small part of my JSON.

{
    "discount_description": "Some special characters. ie: şiçöğü",
    "discount_start": "2014-08-08T10:51:20Z",
    "discount_end": "2014-08-08T10:51:22Z",
    "discount_title": "İndirim Var Şenlik Var",
    "discount_category": [
        2
    ],
    "discount_store": [
        2
    ]
}
0
source share
1 answer

No need to highlight special characters in JSON, Json will handle any special characters

But when you see the Json data in the browser, you will see \ u015fi \ ​​u00e7 \ u00f6 \ u011f \ u00fc // Json Encoded data p>

Json . (şiçöğü)//Json Decoded data​​p >

+2

Source: https://habr.com/ru/post/1599844/


All Articles