-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot encode a dotted pair #48
Comments
as a side note, this issue (together with this one) was uncovered while testing cl-transit, which uses jzon for the JSON part. |
Hi - Yes, jzon used to be clever about things like dotted pairs but it was scaled back. Instead it only encodes proper lists. But I am a fan of "it just works". What do you believe a dotted pair should stringify to? |
IMO a dotted pair ought to be encoded as is a list with 2 elements in it, and produce a JSON array of 2 elements |
Alright. I appreciate it. I'll look through my notes later to see what past me had to say about this and get back to you. Thanks. And thanks again for the float report - I can't believe I forgot to test the trivial case on that one. Embarrassing. |
haha no worries -- these things happen! thank you for contributing JZON |
Surprisingly JZON fails to encode a dotted pair, as it assumes it will be able to call
length
on thecdr
The text was updated successfully, but these errors were encountered: