Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Json Objects in Python
#1
Hi,

I am getting values in Json format.  In those values data may contain in Latin or Japanese or Chinese.

How can I retrieve that data in those languages?  Please help me.

Thank you
Raman
Reply
#2
Start by learning how to use JSON. It's pretty simple and won't take long
Get started here: https://docs.python.org/3/library/json.html

Do you know the utf encoding format?
chinese is probably utf-16, same with Japanese
Latin i would expect utf-8

if you need to translate, take a look at goslate: https://pypi.python.org/pypi/goslate
Reply
#3
(Nov-08-2016, 01:06 PM)Larz60+ Wrote: Start by learning how to use JSON. It's pretty simple and won't take long Get started here: https://docs.python.org/3/library/json.html Do you know the utf encoding format? chinese is probably utf-16, same with Japanese Latin i would expect utf-8 if you need to translate, take a look at goslate: https://pypi.python.org/pypi/goslate

Hi,

When we are retrieving data from Json, below things we are getting. Not able to display with the Original Language in Japanese.

"name":"Raman \u897f\u5ca1","first_name":"Raman","last_name":"\u897f\u5ca1"
Reply
#4
I am not an expert using languages other than English with JSON'
Here's a url that shows how to read the data

see: http://stackoverflow.com/questions/34761...-json-file

on how to actually read the data from Json.
then (if still in Japanese look at the goslate module: https://pypi.python.org/pypi/goslate
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Split json into separate json based on node value CzarR 1 5,470 Jul-08-2022, 07:55 PM
Last Post: Larz60+
  Passing List of Objects in Command Line Python usman 7 3,084 Sep-27-2020, 03:45 PM
Last Post: ndc85430
  How to create and define in one line a 2D list of class objects in Python T2ioTD 1 1,986 Aug-14-2020, 12:37 PM
Last Post: Yoriz
  Parse JSON multiple objects larkin_L 8 5,607 May-27-2020, 11:18 AM
Last Post: nuffink
  difficulties to chage json data structure using json module in python Sibdar 1 2,042 Apr-03-2020, 06:47 PM
Last Post: micseydel
  How to serialize custom class objects in JSON? Exsul1 4 3,432 Sep-23-2019, 08:27 AM
Last Post: wavic
  Python - Make Json objects to work concurrently through Threads? WeInThis 0 2,587 Sep-22-2017, 11:31 AM
Last Post: WeInThis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020