Since it doesn't dump real JSON, it's probably not a good way to dump JSON. So it should probably be removed or renamed for a better API.
The reason it doesn't dump real JSON is because when dumping strings, it ignores the \uxxxx literals and even the escape sequences which makes it wrong.
It might be worth looking into how Python does JSON dumping. This allows it to be relevant to issue #5.
Since it doesn't dump real JSON, it's probably not a good way to dump JSON. So it should probably be removed or renamed for a better API.
The reason it doesn't dump real JSON is because when dumping strings, it ignores the
\uxxxxliterals and even the escape sequences which makes it wrong.It might be worth looking into how Python does JSON dumping. This allows it to be relevant to issue #5.