Dop, Awk-like processing for JSON/YAML/TOML with Lua
Dop, Awk-like processing for JSON/YAML/TOML with Lua
dop reads JSON, YAML, or TOML from stdin, walks the structure field by field, and lets you transform values with Lua. It can also query nested paths and convert between formats. It weights just 800kb and you don't need Lua installed in your pc. A few examples: echo '{"list":[1,2,3]}' | dop -e ' if type(VALUE) == "number" then set(VALUE * 2) end ' # => {"list":[2,4,6]} echo '{"data":{"some_list":[1,2,3]}}' | dop -q data.some_list # => [1,2,3] What I wanted was: - something simpler to reason about for non-trivial transforms - one tool for JSON/YAML/TOML - embedded scripting without needing Lua installed separately Repo: https://github.com/dhuan/dop Any feedback is welcome.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
Quicktype – it's like Uber, but for JSON
ramda-cli, a jq-like tool for processing JSON with functional pipelines
cloudlab - numerical processing with javascript & json
JSON-up – Like database migrations, but for JSON
A very loose JSON-like markup language
Brackit – Separating Key Concerns in JSON Query Processing
Command-line JSON processing tool
JSON.stringify (without circular deps) for AngularJS 1.x
Homogenius – JSON packer/unpacker
json.is