Re: Re: New JSON parser

From: Date: Tue, 25 Mar 2014 23:35:24 +0000
Subject: Re: Re: New JSON parser
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-73435@lists.php.net to get a copy of this message
Jakub Zelenka wrote:
Hi, It looks quite useful. Do you share sources somewhere?
This should be it, more or less (old stuff, not sure I can dig it up perfectly) https://github.com/gggeek/phpxmlrpc-extras/blob/master/jsonrpc/testsuite.php
Thanks Jakub On Mon, Mar 24, 2014 at 10:22 PM, Gaetano Giunta <giunta.gaetano@gmail.com <mailto:giunta.gaetano@gmail.com>> wrote:
    While definitely not a comprehensive test suite, here is a page I had set up ages ago when comparing JSON decoders:
    http://gggeek.altervista.org/sw/article_20070425.html
    What I was especially interested in are "edge cases", ie. strings which fall outside the spec but might be decoded as something else than NULL by -some-
    libs at -some point in time- (ie. comments, trailing commas etc), or generate errors/warnings which one could also like to keep stable as part of an API
    contract.
    That's why I think it might still be useful, as it seems that hoaproject focuses on parsing *valid* strings instead.
    Bye
    Gaetano


« previous php.internals (#73435) next »