# JSON Unicode

**URL:** <https://forums.plex.tv/t/json-unicode/120122>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [October 24, 2015, 9:28pm UTC](https://forums.plex.tv/t/json-unicode/120122 "2015-10-24T21:28:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rc.vempati](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@rc.vempati](https://forums.plex.tv/u/rc.vempati)\
**Post date:** [October 24, 2015, 9:28pm UTC](https://forums.plex.tv/t/json-unicode/120122/1 "2015-10-24T21:28:36Z")

</div>

I am trying to json object from a string and it is converting into UNICODE. Means including u(‘XXXXX’,) format. Where XXXX is the value for a key of json array.

The json content returned from the server is of type UTF-8

I am using JSON.ObjectFromURL, Do I need specify any parameter to this function to get plain string instead of UNICODE. I tried encode to ascii, but it removes U and even replace function did not help in replacing the other characters. Some thing I am missing. I am not an python expert.

Please advice.

thanks  
Ramesh

---

<div class="post-metadata">

**Author:** ![coryo123](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@coryo123](https://forums.plex.tv/u/coryo123)\
**Post date:** [October 25, 2015, 12:20am UTC](https://forums.plex.tv/t/json-unicode/120122/2 "2015-10-25T00:20:55Z")

</div>

The documentation shows  
`JSON.ObjectFromURL(url, values=None, headers={}, cacheTime=None, encoding=None, errors=None, timeout=<object object at 0x10042bc40>, sleep=0)`

so it looks like you can specify the encoding type.

UTF-8 is unicode though. What exactly is the problem?

---

<div class="post-metadata">

**Author:** ![rc.vempati](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@rc.vempati](https://forums.plex.tv/u/rc.vempati)\
**Post date:** [October 25, 2015, 3:19pm UTC](https://forums.plex.tv/t/json-unicode/120122/3 "2015-10-25T15:19:33Z")

</div>

It is my mistake. I have included a comma while assigning the json array to one of the variable. That is including (‘XXXX’,)

---

<div class="post-metadata">

**Author:** ![LeslieCecileBrown](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@LeslieCecileBrown](https://forums.plex.tv/u/LeslieCecileBrown)\
**Post date:** [June 8, 2016, 7:51pm UTC](https://forums.plex.tv/t/json-unicode/120122/4 "2016-06-08T19:51:57Z")

</div>

Great topic! I am working on an executive overview that I need to present to my manager, can anybody point me to some other high-level discussions on this topic, I’m not a great writer (except when it comes to code :)) and I would like to see how some people describe it in a way that’s easy for non-technical folks … Thanks

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 7:52pm UTC](https://forums.plex.tv/t/json-unicode/120122/5 "2020-01-08T19:52:28Z")

</div>


