Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JSON Parsing
#2
I'm not sure if I understood your question but python has a powerful json module.

import json

my_str_json = '{"Emp" : {"K1" : "V1", "Address" : [], "K2" : "V2", "job" : { "K3" : "v3"}}}'
my_json = json.loads(my_str_json)
print(my_json["Emp"]["job"]["K3"]) # 'v3'
Reply


Messages In This Thread
JSON Parsing - by PythonLearner007 - Jan-30-2019, 02:12 AM
RE: JSON Parsing - by gontajones - Jan-30-2019, 04:06 PM
RE: JSON Parsing - by PythonLearner007 - Jan-31-2019, 01:08 AM
RE: JSON Parsing - by gontajones - Jan-31-2019, 10:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Parsing large JSON josvink66 5 768 Jan-10-2024, 05:46 PM
Last Post: snippsat
  Parsing JSON pyStund 4 3,178 Jul-31-2022, 02:02 PM
Last Post: pyStund
  Json Parsing sshree43 5 1,905 May-04-2022, 09:21 PM
Last Post: snippsat
  json api data parsing elvis 0 964 Apr-21-2022, 11:59 PM
Last Post: elvis
  string indices must be integers when parsing Json ilknurg 3 6,614 Mar-10-2022, 11:02 AM
Last Post: DeaD_EyE
  Help Parsing JSON kfwydfo1x 5 4,730 Jan-26-2021, 10:42 AM
Last Post: DeaD_EyE
  Parsing JSON with backslashes bazcurtis 3 9,472 Feb-08-2020, 01:13 PM
Last Post: bazcurtis
  JSON parsing (nested) fakka 0 3,124 Nov-25-2019, 09:25 PM
Last Post: fakka
  Parsing json - dictionary with in dictionary krish216 6 3,781 Jul-30-2019, 10:01 PM
Last Post: cvsae

Forum Jump:

User Panel Messages

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