Article 4XZQY python

python

by
shravan1234
from LinuxQuestions.org on (#4XZQY)
i have a json file , i have to parse the json file using python code. i have writeen some code in python which is working .
# -*- coding: utf-8 -*-
"""
Created on Sat Jan 11 13:13:36 2020

@author: admin
"""

import json

jsonData = json.load(open('E:\Shravan\input.json'))

messageKeys = jsonData.keys()
#value = ["Enumerated", "INT_32","INT_16"] // added by sk

for key in messageKeys:
file = open("E:/Shravan/"+key+".txt","w+")
# file.write(json.dumps(jsonData[key]["paramerts"]))
file.write(json.dumps(jsonData[key]["paramerts","value"])) // added by sk
file.close()

my question is if i want to display the parameter name and parameter type how to do please help me. some parameter types are like enumerated, INT 16, and INT 32latest?d=yIl2AUoC8zA latest?i=f5lsaOn3MeQ:lGLnJZNqRKQ:F7zBnMy latest?i=f5lsaOn3MeQ:lGLnJZNqRKQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=f5lsaOn3MeQ:lGLnJZNqRKQ:gIN9vFwf5lsaOn3MeQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments