docs(cli): clarify strict json parsing (#80981)

This commit is contained in:
Arnav Panicker
2026-06-29 02:49:19 +05:30
committed by GitHub
parent 9bb004359e
commit 8e69811560
+3 -1
View File
@@ -89,7 +89,7 @@ openclaw config set 'agents.list[1].tools.exec.node' "node-id-or-name"
## Values
Values are parsed as JSON5 when possible; otherwise they are treated as strings. Use `--strict-json` to require JSON5 parsing. `--json` remains supported as a legacy alias.
Values are parsed as JSON5 when possible; otherwise they are treated as strings. Use `--strict-json` to require standard JSON parsing with no string fallback. `--json` remains supported as a legacy alias for `--strict-json`.
```bash
openclaw config set agents.defaults.heartbeat.every "0m"
@@ -97,6 +97,8 @@ openclaw config set gateway.port 19001 --strict-json
openclaw config set channels.whatsapp.groups '["*"]' --strict-json
```
When `--strict-json` is enabled, JSON5-only syntax such as comments, trailing commas, or unquoted object keys is rejected. Omit `--strict-json` for JSON5 value parsing with raw-string fallback.
`config get <path> --json` prints the raw value as JSON instead of terminal-formatted text.
<Note>