Could you design a JSON++ file format so that it’s trivially convertible to JSON? Then it’s a matter of stripping the comments/quoting keys then using any JSON parser? JSON5 seems like too many extensions…
-
-
Replying to @glenmaddern @rickhanlonii
My custom JSON format has regexes, NaN, sigint, Infinity, Dates, optional key quotes, trailing commas, comments (retained when serializing), optional curly braces at the top level etc. So more extensions than even JSON5. But more opinionated, only double quotes for strings etc.
2 replies 0 retweets 8 likes -
Replying to @sebmck @glenmaddern
This sounds awesome why would you not use this
1 reply 0 retweets 5 likes -
Replying to @rickhanlonii @glenmaddern
I got self conscious when I did the Rome deep dive for the RN + React team because I got feedback that I spent too long talking about it and that it seemed friviulous and made my focus seem frantic
1 reply 0 retweets 2 likes -
Replying to @sebmck @rickhanlonii
Too long talking about the config format, you mean? It distracted from Rome itself?
1 reply 0 retweets 1 like -
Replying to @glenmaddern @rickhanlonii
I was demoing all the features of Rome in like a 20 minute meeting and I spent half of it talking about the JSON parser because I had just finished it and was excited
2 replies 0 retweets 13 likes -
Replying to @sebmck @rickhanlonii
hahaha fair enough. It does sound like a lot of extensions to JSON, my question would be whether it’s losslessly convertible to JSON, so things like NaN/Dates aren’t? I think if you have a file format that’s 1:1 convertible to/from JSON it’ll then need no explanation.
1 reply 0 retweets 2 likes -
Replying to @glenmaddern @rickhanlonii
Going back to my original format but without the extra data types sounds like a good idea then and would fulfill those requirements. I guess I'll throw out the TOML parser I just wrote... I'll see how I'm feeling about it tomorrow lol
3 replies 0 retweets 3 likes -
I feel good about it. Rough draft, not meant for public consumption, just to detail the design. What do ya'll think? (I already built it)https://gist.github.com/sebmck/7389efa51ca015f98f170e0d6f5f49e9 …
8 replies 0 retweets 13 likes -
rome.son Sebastian’s Object Notation
4 replies 1 retweet 27 likes
I'm scared at how much I like that
-
-
Replying to @sebmck @dan_abramov and
I am having a daughter in December so this would be the son I never had
2 replies 0 retweets 19 likes -
Replying to @sebmck @dan_abramov and
Congrats
I guess you've got yourself a deadline for Rome.1 reply 0 retweets 2 likes - 1 more reply
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 