JSON

How to format JSON with python

We can format minified json with python. Python has built in JSON module. We will add indentation in the minified json to format it. First example format JSON add space import json minified_json_example = ‘{“text”:”Hi There”,”type”:”greeting”,”word”:”2″}’ #convert it to python dictonary python_dictionarty = json.loads(minified_json_example) #We will use 4 space indentation to format and convert it […]