Coder Social home page Coder Social logo

cannot encode a dotted pair about jzon HOT 5 OPEN

zulu-inuoe avatar zulu-inuoe commented on May 20, 2024
cannot encode a dotted pair

from jzon.

Comments (5)

jsulmont avatar jsulmont commented on May 20, 2024

as a side note, this issue (together with this one) was uncovered while testing cl-transit, which uses jzon for the JSON part.

from jzon.

Zulu-Inuoe avatar Zulu-Inuoe commented on May 20, 2024

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?

from jzon.

jsulmont avatar jsulmont commented on May 20, 2024

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

from jzon.

Zulu-Inuoe avatar Zulu-Inuoe commented on May 20, 2024

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.
I don't see the harm now that we don't do fancy alist/plist heuristic detection.

Thanks. And thanks again for the float report - I can't believe I forgot to test the trivial case on that one. Embarrassing.

from jzon.

jsulmont avatar jsulmont commented on May 20, 2024

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. I don't see the harm now that we don't do fancy alist/plist heuristic detection.

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

from jzon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.