Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

JSON

Direct answer

JSON is the standard data format for APIs and many tools: objects of key-value pairs, arrays, strings, numbers, booleans and null. Parse it with jq, ConvertFrom-Json or json.loads.

When to use this

Use this when automation exchanges JSON with APIs or tools.

First 30 seconds

1. JSON: objects, arrays, strings, numbers, booleans, null.

2. No comments or trailing commas.

3. UTF-8.

4. Validate with JSON Schema.

5. jq for querying.

Operational verification

JSON text → parser → data structure

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
JSON parsing and validation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformJSON parsing and validation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior. · Cross-platform automation / API / controller
Key commandjq . <file.json>
Scope / prerequisiteUse this when automation exchanges JSON with APIs or tools.
Reference · 1
What next?3 suggested next steps
Child topics (this level)5
Catalog command links1
Evidence0
On this pageJump to a specific section
Automation command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Example Narrow the fault
jq . data.json
python3 -m json.tool data.json
Step 2 Common mistakes Narrow the fault
  • Comments or trailing commas.
  • Large integers losing precision in some languages.
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • JSON has objects, arrays, strings, numbers, booleans and null.
  • JSON has no comments.
  • Parse with jq, ConvertFrom-Json or json.loads.
Key checks
  • jq . file.json — validate
  • jq '.items[] | .name' file.json — extract
  • python3 -m json.tool file.json — pretty print
ReferenceWhy it matters1 section · depth on demand

What it is

JSON is the standard data format for APIs: objects, arrays, strings, numbers, booleans and null, UTF-8 text.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

JSON (JavaScript Object Notation) is a text format for structured data built from objects (key/value maps), arrays, strings, numbers, booleans and null. It is the common language of web APIs, many configuration files and logging systems, and nearly every programming language can read and write it.

{
  "device": "sw-oslo-07",
  "vlans": [10, 20],
  "uplink": { "interface": "Te1/1/1", "enabled": true },
  "notes": null
}

Rules that cause most errors: keys and strings must use double quotes, no trailing commas, no comments, and numbers have no leading zeros. Validate with jq . file.json or python -m json.tool file.json.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docJSON parsing and validation current

Authoritative/upstream documentation reviewed for bounded claims in Data Formats > JSON. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc8259 · confidence 94%
Confirmation

Confirm action

Continue?