@m-roberts thank you for the PR! Collaboration and contribution is appreciated.
However, I am reluctant to embark on your PR because:
I am not sure your code is working, there are not tests
More important, though SRP: I still think sse-starlette should not get involved with json serialization business. As your code demonstrates, it is easily handled by the consumer.
Adds native JSON support for Python objects. Fixes #21 which was closed but not resolved.