lua-patterns
awesome-json-next
Our great sponsors
lua-patterns | awesome-json-next | |
---|---|---|
1 | 3 | |
27 | 55 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | about 3 years ago | |
Rust | ||
MIT License | Creative Commons Zero v1.0 Universal |
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.
lua-patterns
-
The Norway Problem
If you want automatic built-in string validation, one option that seems particularly interesting is to use a variant of Lua patterns, which are weaker and easier to understand than regular expressions, but still provide a significant degree of "sanity" for something like an email. The original version works on bytes and not runes, but you could simply write a parser that works on runes instead, and the pattern-matching code is just 400 old and battle-tested lines of C89.
Lua patterns have also shown up in other places, such as BSD's httpd, and an implementation for Rust:
https://www.gsp.com/cgi-bin/man.cgi?section=7&topic=PATTERNS
https://github.com/stevedonovan/lua-patterns
http://lua-users.org/wiki/PatternsTutorial
awesome-json-next
-
The Norway Problem
You might look at JSON Next variants (if you remember - "classic" JSON is a subset of YAML), see https://github.com/json-next/awesome-json-next
my own little JSON Next entry / format is called JSON 1.1 or JSONX, that is, JSON with eXtensions, see https://json-next.github.io/
- json-next/awesome-json-next
-
JSON with Commas and Comments
FYI: I collect JSON variants with extension at the Awesome JSON - What's Next? page [1].
[1] https://github.com/json-next/awesome-json-next
What are some alternatives?
jsonnet - Jsonnet - The data templating language
russian-words - List of Russian words
dhall-lang - Maintainable configuration files
msgpack-tools - Command-line tools for converting between MessagePack and JSON / msgpack.org[UNIX Shell]
edn - Extensible Data Notation
pyyaml - Canonical source repository for PyYAML
yamllint - A linter for YAML files.
ujsonin - Micro JSON Input / Reader
strictyaml - Type-safe YAML parser and validator.
cson - CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.
asn1c - The ASN.1 Compiler