On Fri, Jan 31, 2025 at 12:20 PM <picolisp@software-lab.de> wrote: > Great. You can never have too many tests. Test your code now too. > > Take the tests from repo and have fun. > > https://git.envs.net/mpech/pil-json > > > (mike) > Wow. That is a great collection of tests, with good insight into how to write my own as well. Thanks for sharing.
At a glance I can see several things I will tighten up in the code I wrote, but there are also quite a few where I chose to be relaxed in what the parser accepts. e.g. Trailing commas, unquoted values (in some cases), and empty object and array values which are returned as (NIL . "undefined"). I have updated the wiki page to clarify that. /Lindsay