Comments (17)
I decided to put my prototype on the Wiki. If you have any issues with that, please let me know. Thanks.
from json5.
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.
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.
Already done 7 months ago. :)
https://github.com/rlidwka/jju/blob/master/docs/Grammar.md
from json5.
@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.
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.
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.
Offtopic: which language? Can we make a list of existing parsers somewhere? Do all tests pass?
from json5.
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.
Just want to say that you guys are awesome. Thanks for all the great work!
from json5.
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.
Nice @jordanbtucker.
Question: should we (finally) just create a json5
organization and move these repos there?
from json5.
@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.
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.
I'm thinking json5
for now.
from json5.
Woohoo! Done. =)
https://github.com/json5/json5
from json5.
@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)
- Module '"node_modules/json5/lib/index"' has no default export HOT 1
- Support Integers outside the range `[-(2**53)+1, (2**53)-1]` HOT 6
- SyntaxError when require()ing JSON5 file in Jest test HOT 1
- Prototype Pollution in JSON5 HOT 11
- json5 latest is now 1.0.2 on npmjs - intentional? HOT 3
- Support Template Literals using backticks? HOT 1
- Provide `exports` config in `packages.json`
- Multiline JSON doesn't multiline HOT 1
- add key property support ? HOT 1
- Add `comma-dangle` option HOT 7
- Online JSON5 Editor(Formatter) is misleading? HOT 2
- Use .substring() instead of the deprecated .substr()
- Cannot stringify "\u0000"
- transitive dependency 'minimist' needs to be updated by rebuilding HOT 1
- question: commented unreachable code HOT 10
- JSON5.stringify() option: `trailingCommas` HOT 3
- Focus on ESNext HOT 1
- CLI should process consecutive JSONs HOT 1
- migrate to ESModules HOT 3
- Missing LICENSE file in the repo of ver 0.4.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json5.