jsonencoder

List elements should be separated by comma and space in json.dumps

List elements should be separated by comma and space in json.dumps Question: I have a json which contains dictionaries, lists, integers etc. json_str = ”’ { "name": "John", "age": 30, "pets": [ { "name": "Fluffy", "type": "cat", "toys": [ "ball", "string", "box" ] }, { "name": "Fido", "type": "dog", "toys": [ "bone", "frisbee" ] } …

Total answers: 1