[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] json-abnf fails to parse booleans

From: Vok Vojwo
Subject: Re: [Chicken-users] json-abnf fails to parse booleans
Date: Sun, 27 Nov 2011 22:39:10 +0100

2011/11/27 Vok Vojwo <address@hidden>:
> The json-abnf module creates some strange results for booleans:
> (use json-abnf)
> (pp (parser "{\"str\":\"a\",\"true\":true,\"false\":false}"))
> prints:
> (object ("str" "a") ("true" (#t)) ("false"))
> true is a list and false is '().

I think the attached patch fixes the problem.

It does some additional changes:

- parser renamed to parse-json
- object tagging removed
- key value pairs stored as pairs instead of lists
- null as symbol null instead of empty list

I think it is now compatible to Medea.

Attachment: json-abnf.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]