Task: Generate Compact JSON Without Whitespaces in Python
Task: Generate Compact JSON Without Whitespaces in Python: a task in Terminal-Lego-15k (Harbor dataset). When using Python's json.dumps() function, it adds whitespace characters after colons and commas by default for readability. However, in scenarios where bandwidth is limited (e.g., HTTP…
The task
When using Python's `json.dumps()` function, it adds whitespace characters after colons and commas by default for readability. However, in scenarios where bandwidth is limited (e.g., HTTP transmission), you may want to generate the most compact JSON possible by removing these unnecessary whitespaces.
Part of PrimeIntellect/Terminal-Lego-15k.