Been there! The standard json lib is slow and memory-heavy. Switch to `orjson`—it’s a drop-in replacement and handles large json dumps like a champ.
If you’re stuck with the default lib, try increasing the recursion limit (`sys.setrecursionlimit()`), but be careful with that.
For encoding, `ensure_ascii=False` might help, but yeah, clean your data first.
If you’re stuck with the default lib, try increasing the recursion limit (`sys.setrecursionlimit()`), but be careful with that.
For encoding, `ensure_ascii=False` might help, but yeah, clean your data first.
