nestedtext
json5

nestedtext | json5 | |
---|---|---|
8 | 101 | |
379 | 6,738 | |
0.8% | 0.6% | |
7.9 | 2.5 | |
7 days ago | 4 months ago | |
Python | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nestedtext
-
The yaml document from hell
As /u/astatine said, an excellent but under-recognized alternative syntax for configuration files is NestedText, where everything is a string unless the ingesting code says otherwise, and there is no escaping needed ever.
-
Yaml: First Class Citizen?
I don't know what traits from markdown you'd hope for, but for a relatively obscure but technically excellent format, you can check out NestedText.
-
A Nigthtmare called YML
I recently came to appreciate and favor an alternative format called NestedText. Like YAML, indentation is used for structure, so like YAML, you may hate it.
-
nt2: a CLI converter between NestedText and JSON, YAML, or TOML
I recently discovered NestedText, and really appreciate the design. To me, it hits the nail on the head where projects like strictyaml and hjson come very close.
-
YAML: It's Time to Move On
I'm glad to see people experimenting with alternative document/object representations, but this one might be a hard sell: based on the README[1], it only has Python, Zig and Janet implementations so far. One of the nice things about YAML (and JSON, TOML, etc.) is that they have decently mature C, C++, or Rust libraries that other languages bind to.
[1]: https://github.com/KenKundert/nestedtext
-
My two favorite things share the same love as me for YAML!
NestedText
-
Json alternatives
NestedText was left out. Has the feel of YaML, without all the complexity and user traps.
- KenKundert/nestedtext ... Human Readable and Writable Data Interchange Format
json5
- Trying out Zed after more than a decade of Vim/Neovim
-
Douglas Crockford Is Not Your Dad
If you want JSON with comments (and a couple other extras), use JSON 5 instead. (It's effectively the JSON++/JSON-C you mention.)
https://json5.org/
- JSON5 – JSON for Humans
-
JSON Extensions for writing config files and parsing data
For the next one there's a variety of implementations each adding its own flavor. Let's look at JSON5 as it's the most complete one.
-
Comparison of configuration file languages (2016)
Many configuration files for tools in the JS ecosystem actually do allow both of those through json5 (https://json5.org/)
-
Why, after 6 years, I'm over GraphQL
There are a lot of proponents that some or all of the "JSON5" [1] improvements should be standardized by ECMA as well. Especially because there is a mish-mash of support for such things in some but not all parsers. (Writers are a different matter.) Primarily comments and trailing commas, are huge wish list items and the biggest reasons for all of the other "many" variant parsers (JSONC, etc).
[1] https://json5.org/
-
Using ARG in a Dockerfile – beware the gotcha
That is what you get when people reinvent the wheel and lifetimes/ scopes are implicit. Docker could've used something like JSON5 [0] for their configuration format to make the lifetimes explicit. Another time when easy won over simple. [1]
[0] https://json5.org/
- Why the fuck are we templating YAML? (2019)
-
I pre-released my project "json-responder" written in Rust
JSON5 support
What are some alternatives?
strictyaml - Type-safe YAML parser and validator.
ron - Rusty Object Notation
sublime-json5 - JSON5 support for Sublime Text
Json.NET - Json.NET is a popular high-performance JSON framework for .NET
yaml-reference-parser
jq - Command-line JSON processor
insta-data-styled - A program to format your Instagram's "messages.json" into a beautiful and readable web format.
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
skycfg - Skycfg is an extension library for the Starlark language that adds support for constructing Protocol Buffer messages.
jsonnet - Jsonnet - The data templating language
dnjs - DOM Notation JS
hjson-js - Hjson for JavaScript
