openclaw-json-editing
SKILL.md
OpenClaw JSON Editing
Expert guidance for editing JSON in the OpenClaw ecosystem. OpenClaw uses JSON5 for configuration (allows comments, trailing commas), has sophisticated config merging, and validates with Zod schemas.
Quick Reference
| Task | Command/Pattern |
|---|---|
| Validate config | openclaw config validate |
| Apply config patch | openclaw config patch <file.json> |
| Safe JSON parse | Use safeParseJson() wrapper |
| Check config location | openclaw config path |
| Pretty print | JSON.stringify(data, null, 2) |
OpenClaw JSON5 Config
OpenClaw config files use JSON5 (not strict JSON):