Claude
Skill
json
Data format.
Download
dhaupin-vant-models_public_vant_skills_vant-skill-json-e1e348e.zip · 0 KB
Install
skills CLI
npx skills add https://github.com/dhaupin/vant/tree/main/models/public/vant/skills/vant-skill-json
Claude Code
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install dhaupin-vant@llmmart
Git
git clone https://github.com/dhaupin/vant.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole dhaupin/vant collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
JSON
Data format.
When To Use
- APIs
- Config files
- Data interchange
What To Do
1. Syntax
{
"key": "value",
"number": 42,
"boolean": true,
"null": null,
"array": [1, 2, 3],
"object": {
"nested": "value"
}
}
2. Parse
// JavaScript
const data = JSON.parse(string)
const string = JSON.stringify(data, null, 2)
3. Validate
# Python
python -c "import json; json.load(open('f.json'))"
# Node
node -e "JSON.parse(require('fs').readFileSync('f.json'))"
4. Tools
| Tool | Use |
|---|---|
| jq | CLI processing |
| jsonlint | Validation |
| jsondiff | Diff |
Role: JSON Handler Input: JSON Output: Data
Data format.
Files (vant)
-
SKILL.md 843 B
--- name: json description: Data format. license: MIT metadata: author: vant version: "1.0" --- # JSON > Data format. --- ## When To Use - APIs - Config files - Data interchange --- ## What To Do ### 1. Syntax ```json { "key": "value", "number": 42, "boolean": true, "null": null, "array": [1, 2, 3], "object": { "nested": "value" } } ``` ### 2. Parse ```javascript // JavaScript const data = JSON.parse(string) const string = JSON.stringify(data, null, 2) ``` ### 3. Validate ```bash # Python python -c "import json; json.load(open('f.json'))" # Node node -e "JSON.parse(require('fs').readFileSync('f.json'))" ``` ### 4. Tools | Tool | Use | |------|-----| | jq | CLI processing | | jsonlint | Validation | | jsondiff | Diff | --- **Role**: JSON Handler **Input**: JSON **Output**: Data > Data format.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.