by coldtea · 11y ago · 0 comments
For a JSON parser? I think you overestimate the difficulty in implementing one. If anything, a parser for such a format is one of the easiest things to know you got correct -- there are extensive test suites.
As for switching to it, Python users already use several JSON libs anyway, so it's not like adopting another would be any great deal.
For the other libs, like numpy etc, yes, it would be more effort, but nothing unsurmountable. And speed is a far greater hook to get users to adopt that version of Python than "we now got unicode all over and fixed a couple more annoyances".
Isn't there a pure-python json parser in the standard lib already?
import json
Does in fact give you a working JSON parser. I wasn't aware there was a different one to use.* the standard library's json, which stems from a merge of simplejson way back
* simplejson
* ujson which can be much faster but is not exactly sound[0]
* cjson
* jsonlib
* demjson
* pyyaml (since yaml is a json superset)