I'm as big a fan as ujson as the next but it would be nice to have json parsing/serialization degrade gracefully if you can't fullfill the requirement. Be happy to submit a PR, would look more or less would like what bottle does
What's the issue with ujson?
it's just slightly less portable than the stdlib verison, for example I hit a
ImportError: /lib64/libc.so.6: version 'GLIBC_2.14' not found
on rhel6 but it works fine on rhel7. I'll probably find a way to work around that somehow but be an easy change if here if it makes sense to you.
I'm fine with using that logic but let's leave it in requirements.txt imo.
awesome, thanks all
ujson is great but looks like it has lost steam, including open issues and PRs about segfaults and memory leaks. Rapidjson looks more healthy these days, though ideally the json codec used by Sanic should be configurable. I can work on a PR if you agree.
it would be much better to use rapidjson instead ujson.
Most helpful comment
ujsonis great but looks like it has lost steam, including open issues and PRs about segfaults and memory leaks. Rapidjson looks more healthy these days, though ideally the json codec used by Sanic should be configurable. I can work on a PR if you agree.