Ah, the classic dumps json struggle! Been there.
Most likely, you're hitting issues with non-serializable types (like datetime, as you guessed). Python’s json module can’t handle those out of the box.
Try using `default=str` in your dumps json call—it’ll convert datetime and other tricky objects to strings. Not perfect, but it’s a quick fix.
For more control, check out libraries like `orjson` or `simplejson`. They’re faster and handle more types.
Most likely, you're hitting issues with non-serializable types (like datetime, as you guessed). Python’s json module can’t handle those out of the box.
Try using `default=str` in your dumps json call—it’ll convert datetime and other tricky objects to strings. Not perfect, but it’s a quick fix.
For more control, check out libraries like `orjson` or `simplejson`. They’re faster and handle more types.
