Python JSON

Just as we did for deserialization, instead of json.loads(), we use json.dumps() to convert the python dictionary into JSON format. You can also do sorting. Let’s play with it a bit. Pass ‘sort_keys=True’ as a parameter to sort the dictionary. Let’s try indenting now. Keypoints : json.loads(data) it takes a string, bytes, or byte array ... ................
................