Re: Yet Another JSON Parser

2025-01-31 Thread GB
Hey Lindsay, Good thing you're having fun writing useful projects! I wrote a small parser myself for picolisp so here's a few points for improvement: - Data on json.org is not a full spec, I recommend using ECMA404 or RFC8259, as they specify behaviours way more accurately. For example, I'm not

Re: New JSON library

2024-11-23 Thread GB
024, 11:29 GB wrote: > Hello everyone, > > I had some problems with data representation in builtin json.l and decided > to write my own little version. > > With an exception of not being able to represent a null byte in strings, > RFC8259 json standard is fully supported. &

Subscribe

2024-11-23 Thread GB

New JSON library

2024-11-23 Thread GB
Hello everyone, I had some problems with data representation in builtin json.l and decided to write my own little version. With an exception of not being able to represent a null byte in strings, RFC8259 json standard is fully supported. I'm also slowly working on a more strict version of the pa

Re: How do I distinguish a list from cons pair?

2025-02-11 Thread GB
Hey, I'm curious myself honestly. Lists are kind of a virtual type, it's just a bunch of cons cells in a sequencial pattern. I think you'd need to write your own function that walks the list to see if its proper or improper (ends with non-nil). Best regards, Geri On Wed, Feb 12, 2025, 08:28 Li