Install the complete package with local command reference and every published mode.
install jsonjsonThe command works with parsed data rather than a text fragment. limits.history selects one nested node, -w changes that path, and values after : remain numbers, booleans, null, arrays or objects when they are valid
json <file> [key|options] · json dump <file>json <file>show
json <file> <key>show one exact path or value
json dump <file>show normalized source text
-f <text|mask> [-k|-v]find matching keys, paths or values
-w <key> : <value>write a value directly to the file
-w <key> < <file>write a value read from another file
-d <key>delete a value or path
-cvalidate the file
With the current core, a successfully opened file is immediately available as $. If this module is the highest-priority installed handler for the file extension, typing the filename by itself opens it through this command. These are core conveniences;
-f searches paths and values. Add -k for keys only or -v for values only. Queries containing * or ? are treated as masks.
-w writes immediately to the file. Use : for an inline value or < <file> to read a value from another file. -d deletes one dotted path.
Writes happen immediately; -w <key> < <file> reads input from another file, and -d removes a path. Deleting features.1 shifts later array indexes down.
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install jsonInstall the reduced package. Local reference is omitted;
install json -mInstall exactly this published version.
install json -v 1.3.6Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade jsonRemove the extension block while leaving the core and unrelated modules intact.
install json -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
cd \sandbox\config | json app.jsonname lil-sandbox
debug true
features.0 files
features.1 code
features.2 archives
limits.upload_mb 2
limits.history 25cd \sandbox\config | app.jsonname lil-sandbox
debug true
features.0 files
features.1 code
features.2 archives
limits.upload_mb 2
limits.history 25json config/app.json limits.history25json config/app.json features.1codejson config/app.json -f "upload" -klimits.upload_mb 2json config/app.json -f "files" -vfeatures.0 filesjson config/app.json -f "limits.*"limits.upload_mb 2
limits.history 25json config/app.json -w limits.history : 30limits.history 30json config/app.json -w limits.policy < config/value.jsonlimits.policy {"rotate":true,"attempts":5}json config/app.json -w features.1 : "editor"features.1 editorjson config/app.json -d features.1name lil-sandbox
debug true
features.0 files
features.1 archives
limits.upload_mb 2
limits.history 25json config/app.json -cValid JSONjson dump config/app.json{
"name": "lil-sandbox",
"debug": true,
"features": [
"files",
"code",
"archives"
],
"limits": {
"upload_mb": 2,
"history": 25
}
}
json config/app.json unknown.keyPath not foundjson config/invalid.json -cInvalid JSONjson config/missing.jsonFile not foundjson config/app.json -w limits.historyValue required after : or sandbox/config/app.jsonThe example uses a file or directory from the protected /sandbox/ documentation workspace.
{
"name": "lil-sandbox",
"debug": true,
"features": ["files", "code", "archives"],
"limits": {
"upload_mb": 2,
"history": 25
}
}
Current stable release of