Is there a defined set of JSON parser tests that validate the majority of edge cases?
I'm researching some JSON parsers, but some are home-grown. Is there a validation test that can be run against a json parser which verifies that the parser is "valid" and serializes/dese开发者_JAVA百科rializes JSON string properly?
It seems that someone attempted to write a test suite here
It is used in another parser project to validate its implementation:
It's in java, don't know if its fit.
(someone has written some tests for python too here)
精彩评论