Code Monkey home page Code Monkey logo

Comments (17)

jordanbtucker avatar jordanbtucker commented on September 25, 2024

I decided to put my prototype on the Wiki. If you have any issues with that, please let me know. Thanks.

from json5.

aseemk avatar aseemk commented on September 25, 2024

This is great @jordanbtucker, thank you!

No issues at all with it in the wiki. I do wonder if it could go in the repo itself though, since part of the purpose of this repo is to be the "spec". I don't feel strongly either way. WDYT?

from json5.

jordanbtucker avatar jordanbtucker commented on September 25, 2024

I think that might be a good idea, especially since I don't see a way to lock down Wiki pages. I'd like to expand the "spec" into a full document at some point.

from json5.

rlidwka avatar rlidwka commented on September 25, 2024

Already done 7 months ago. :)

https://github.com/rlidwka/jju/blob/master/docs/Grammar.md

from json5.

jordanbtucker avatar jordanbtucker commented on September 25, 2024

@rlidwka Nice document. Almost the same as the one on the wiki, as far as I can see, with a few differences: line terminators (#70), signed hexadecimals (#36), numeric literals as property names (#55), Unicode escapes in property names (#1), and it's one grammar instead of a lexical and a syntactical.

from json5.

rlidwka avatar rlidwka commented on September 25, 2024

Yeah, you see two different approaches here. This repository (and its grammar in wiki) is based on JSON parser. But in my implementation I actually got ES5 grammar and worked down from there, reducing features.

So all the differences you see are probably differences between JSON and JavaScript that haven't been resolved yet. And a potential source of the confusion for users trying to use JS grammar with JSON5.

from json5.

jordanbtucker avatar jordanbtucker commented on September 25, 2024

Funny, that's the same thing I did when I started writing a JSON5 parser for another language. I used the ES5 grammar. That's when I started finding a lot of missing features. :)

from json5.

rlidwka avatar rlidwka commented on September 25, 2024

Offtopic: which language? Can we make a list of existing parsers somewhere? Do all tests pass?

from json5.

jordanbtucker avatar jordanbtucker commented on September 25, 2024

C# / .NET. It's a WIP at this point. I stopped to focus on JSON5 itself before continuing with other implementations.

There's a page on the Wiki called In The Wild. I think that's a good starting point to keep that list.

from json5.

aseemk avatar aseemk commented on September 25, 2024

Just want to say that you guys are awesome. Thanks for all the great work!

from json5.

jordanbtucker avatar jordanbtucker commented on September 25, 2024

We now have an official spec in draft status. The PDF version can be found on the releases page.

Ideally, discussions regarding the future of JSON5 will be discussed in the json5-spec repo, while discussions regarding the JavaScript reference implementation will still be discussed in this repo.

I'd like to separate the goal of JSON5 from the different implementations.

Let me know what you think.

from json5.

aseemk avatar aseemk commented on September 25, 2024

Nice @jordanbtucker.

Question: should we (finally) just create a json5 organization and move these repos there?

from json5.

jordanbtucker avatar jordanbtucker commented on September 25, 2024

@aseemk That sounds good. I've got a partial C# implementation and another one for Go, but I haven't uploaded them yet.

from json5.

aseemk avatar aseemk commented on September 25, 2024

Thanks @jordanbtucker on creating the org! Happy to move this repo there. Should we keep the name simply json5, or change to json5-js?

from json5.

jordanbtucker avatar jordanbtucker commented on September 25, 2024

I'm thinking json5 for now.

from json5.

aseemk avatar aseemk commented on September 25, 2024

Woohoo! Done. =)

https://github.com/json5/json5

from json5.

jordanbtucker avatar jordanbtucker commented on September 25, 2024

@aseemk Awesome. Thanks.

BTW, did you see this controversial issue about removing support for Infinity and NaN on the json5-spec repo?

from json5.

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.