Skip to main content
🇪🇸 Español 🇧🇷 Português 🇩🇪 Deutsch
Image Converter Video Converter Audio Converter Document Converter
Tools Guides Formats Pricing API
Log In
Guide

JSON Format: The Complete Guide to JavaScript Object Notation

PC By Pablo Cirre

Frequently Asked Questions

JSON is stricter and more machine-oriented: double-quoted strings only, no comments, no trailing commas, limited data types. YAML is a superset of JSON (valid JSON is valid YAML) that adds: comments, multi-line strings, unquoted strings, more data types (dates, binary), and a more readable indentation-based syntax. JSON is preferred for API responses and machine-generated data. YAML is preferred for human-written configuration files (Docker Compose, Kubernetes, GitHub Actions, Ansible). YAML's flexibility also makes it error-prone — indentation mistakes are common bugs.

JSON is stricter e more machine-oriented: double-quoted strings only, no comments, no trailing commas, limited data types. YAML is a superset of JSON (valid JSON is valid YAML) that adds: comments, multi-line strings, unquoted strings, more data types (dates, binary), e a more readable indentation-based syntax. JSON is preferred para API responses e machine-generated data. YAML is preferred para human-written configuration arquivos (Docker Compose, Kubernetes, GitHub Actions, Ansible). YAML's flexibility also makes it error-prone — indentation mistakes are common bugs.

JSON is stricter und more machine-oriented: double-quoted strings only, no comments, no trailing commas, limited data types. YAML is a superset von JSON (valid JSON is valid YAML) that adds: comments, multi-line strings, unquoted strings, more data types (dates, binary), und a more readable indentation-based syntax. JSON is preferred für API responses und machine-generated data. YAML is preferred für human-written configuration Dateien (Docker Compose, Kubernetes, GitHub Actions, Ansible). YAML's flexibility also makes it error-prone — indentation mistakes are common bugs.

JSON is stricter y more machine-oriented: double-quoted strings only, no comments, no trailing commas, limited data types. YAML is a superset de JSON (valid JSON is valid YAML) that adds: comments, multi-line strings, unquoted strings, more data types (dates, binary), y a more readable indentation-based syntax. JSON is preferred para API responses y machine-generated data. YAML is preferred para human-written configuration archivos (Docker Compose, Kubernetes, GitHub Actions, Ansible). YAML's flexibility also makes it error-prone — indentation mistakes are common bugs.

Send <strong>PDF</strong> when the document is final and the layout must be preserved exactly (contracts, invoices, certificates). Send <strong>DOCX</strong> when reviewers need to edit, comment, or track changes. Many teams send both: PDF as the canonical version + DOCX for editable feedback. PDF/A is the right pick for legal archival (ISO 19005).

No — standard JSON (RFC 8259 / ECMA-404) does not support comments. Douglas Crockford intentionally excluded them. Workarounds: (1) Use a "_comment" key: `{"_comment": "This is a note", "data": ...}` — ignore it in code. (2) Use JSONC (JSON with Comments) — supported by VS Code config files and TypeScript configs; strip comments with `strip-json-comments` before parsing. (3) Use JSON5 which fully supports `//` and `/* */` comments. (4) Use YAML instead for human-written config files.

Não — o JSON padrão (RFC 8259 / ECMA-404) não suporta comentários. Douglas Crockford os excluiu intencionalmente. Soluções: (1) usar uma chave "_comment": `{"_comment": "isto é uma nota", "data": ...}`, (2) usar JSONC (variante com comentários) no VS Code, (3) pré-processar o JSON removendo comentários antes do parse, ou (4) mudar para YAML/TOML se comentários nativos forem críticos.

Nein — Standard-JSON (RFC 8259 / ECMA-404) unterstützt keine Kommentare. Douglas Crockford hat sie absichtlich ausgeschlossen. Lösungen: (1) Einen "_comment"-Schlüssel verwenden: `{"_comment": "Das ist eine Notiz", "data": ...}`, (2) JSONC (Variante mit Kommentaren) in VS Code nutzen, (3) JSON vor dem Parsen mit einem Comment-Stripper vorverarbeiten, oder (4) zu YAML/TOML wechseln, wenn native Kommentare kritisch sind.

No — el JSON estándar (RFC 8259 / ECMA-404) no soporta comentarios. Douglas Crockford los excluyó intencionalmente. Soluciones: (1) usar una clave "_comment": `{"_comment": "esto es una nota", "data": ...}`, (2) usar JSONC (variante con comentarios) en VS Code, (3) preprocesar el JSON con un strip de comentarios antes del parse, o (4) cambiar a YAML/TOML si los comentarios nativos son críticos.

Round-tripping between similar formats (DOCX ↔ ODT, DOCX → PDF) is generally safe. Round-tripping with format-specific features (Word macros, complex tables, footnotes) often loses fidelity. Embedded fonts survive only if both source and target support font embedding (PDF yes, DOCX yes, plain HTML no). Always preview the result before deleting the original.

JSON to CSV works best when your JSON is an array of flat objects with consistent keys. Python: use `json.load()` then `csv.DictWriter`. Command line: `mlr --ijson --ocsv cat data.json > data.csv` (Miller tool), or `jq -r '.[] | [.id,.name,.email] | @csv' data.json`. Challenges: nested JSON objects must be flattened first (pandas `json_normalize()` helps). Arrays within objects need a strategy (join as string, or create multiple CSV rows). jq's `@csv` output format handles quoting automatically.

JSON to CSV funciona best when your JSON is an array of flat objects com consistent keys. Python: usar `json.load()` then `csv.DictWriter`. Command line: `mlr --ijson --ocsv cat data.json > data.csv` (Miller tool), ou `jq -r '.[] | [.id,.name,.email] | @csv' data.json`. Challenges: nested JSON objects must be flattened first (pandas `json_normalize()` helps). Arrays within objects need a strategy (join as string, ou create multiple CSV rows). jq's `@csv` output formato handles quoting automatically.

JSON to CSV works best when your JSON is an array von flat objects mit consistent keys. Python: verwenden `json.load()` then `csv.DictWriter`. Command line: `mlr --ijson --ocsv cat data.json > data.csv` (Miller tool), oder `jq -r '.[] | [.id,.name,.email] | @csv' data.json`. Challenges: nested JSON objects must be flattened first (pandas `json_normalize()` helps). Arrays within objects need a strategy (join as string, oder create multiple CSV rows). jq's `@csv` output Format handles quoting automatically.

JSON to CSV works best when your JSON is an array de flat objects con consistent keys. Python: usar `json.load()` then `csv.DictWriter`. Command line: `mlr --ijson --ocsv cat data.json > data.csv` (Miller tool), o `jq -r '.[] | [.id,.name,.email] | @csv' data.json`. Challenges: nested JSON objects must be flattened first (pandas `json_normalize()` helps). Arrays within objects need a strategy (join as string, o create multiple CSV rows). jq's `@csv` output formato handles quoting automatically.

If the PDF contains real text (not scanned images), <code>pdftotext</code> from poppler-utils or <a href="/convert/pdf-to-txt">PDF to TXT</a> works in seconds. If the PDF is a scanned image, you need OCR — Tesseract is the open-source standard. KaijuConverter's PDF tools auto-detect text-vs-image PDFs and route accordingly.

NDJSON (Newline Delimited JSON) stores one JSON object per line with no enclosing array. It is ideal for: log streams (one event per line), large dataset exports (no need to hold entire file in memory), streaming APIs, Elasticsearch bulk indexing, and ETL pipelines. Standard JSON arrays require loading the entire document into memory to parse; NDJSON can be processed one line at a time. Read NDJSON in Python: `for line in file: record = json.loads(line)`. Write: `file.write(json.dumps(record) + "\n")`.

NDJSON (Newline Delimited JSON) stores one JSON object per line com no enclosing array. It is ideal for: log streams (one event per line), large dataset exports (no precisar hold entire arquivo in memory), streaming APIs, Elasticsearch bulk indexing, e ETL pipelines. padrão JSON arrays require loading the entire document em memory to parse; NDJSON can be processed one line at a time. Read NDJSON in Python: `for line in file: record = json.loads(line)`. Write: `file.write(json.dumps(record) + "\n")`.

NDJSON (Newline Delimited JSON) stores one JSON object per line mit no enclosing array. It is ideal for: log streams (one event per line), large dataset exports (no need to hold entire Datei in memory), streaming APIs, Elasticsearch bulk indexing, und ETL pipelines. Standard JSON arrays require loading the entire document in memory to parse; NDJSON can be processed one line at a time. Read NDJSON in Python: `for line in file: record = json.loads(line)`. Write: `file.write(json.dumps(record) + "\n")`.

NDJSON (Newline Delimited JSON) stores one JSON object per line con no enclosing array. It is ideal for: log streams (one event per line), large dataset exports (no need to hold entire archivo in memory), streaming APIs, Elasticsearch bulk indexing, y ETL pipelines. estándar JSON arrays require loading the entire document en memory to parse; NDJSON can be processed one line at a time. Read NDJSON in Python: `for line in file: record = json.loads(line)`. Write: `file.write(json.dumps(record) + "\n")`.

Light edits (annotations, signatures, form fields) are fine in any PDF reader. Structural edits (changing paragraphs, replacing images) are awkward — PDF is a presentation format, not an editing format. The robust workflow is: keep the source DOCX/MD/HTML as the master, regenerate the PDF when changes are needed. Tools that "edit PDFs" reverse-engineer the layout and frequently break it.

We use cookies and similar technologies to personalise content and ads, and to analyse traffic. Learn more about cookies.