Tags » json
-
Handling JSON objects with duplicate names in Python
It’s possible, although uncommon, for a JSON object to contain the same name multiple times. Here are some ways to handle that in Python.
-
TIL: Create compact JSON with Python
Calling
json.dumps(…, separators=(',', ':'))
will reduce the amount of whitespace in the final string.