Published 2026-07-23
Master the JSON section on FindMeTool: pretty print with json-formatter, catch syntax errors with json-validator, minify for logs, diff two versions, and sort keys for stable reviews.
The JSON toolkit at a glance
FindMeTool JSON section bundles five focused pages: json-formatter, json-validator, json-minifier, json-diff, and json-sort-keys. Each does one job well so pages stay fast during incidents.
JSON is strict text: double-quoted keys, no comments, no trailing commas. Real-world snippets break those rules when they come from JavaScript consoles or hand-edited configs. Processing runs in the browser for typical payloads, which suits API debugging on staging data you prefer to keep out of random cloud formatters.
Start with validation
When formatting fails mysteriously, open json-validator first. Error messages point to unexpected tokens, missing commas, or stray backslashes. Fix syntax before pretty printing so you are not staring at partial trees.
Validators do not guarantee business correctness. A document can be syntactically valid yet missing required fields your schema expects. Pair validation with application-level tests. Keep validator open in a second tab while editing generated JSON in your editor, and paste back after each fix until green checks appear.
Pretty print and minify
json-formatter adds indentation and line breaks without changing parsed values. Use two-space indent to match most JavaScript repos or four spaces if your team standard says so. Pretty output helps code review, support tickets, and documentation samples.
json-minifier removes whitespace for embeds in HTML data attributes, mobile payloads, or log shipping where bytes cost money. Minified lines are hard to read, so minify only after debugging. Minification preserves key order unless you sorted keys separately. Redact secrets before minifying, because a single line is easier to leak accidentally in chat. If formatting succeeds but values look wrong, the bug is upstream in your API, not the formatter.
Diff two versions
json-diff compares left and right inputs and highlights changes. Use it when a client insists nothing changed between releases but behavior shifted. Side-by-side visual diffs beat guessing in minified logs.
Large diffs can be noisy when arrays reorder harmlessly. Consider json-sort-keys on both sides before diffing if order is not semantically meaningful. Export diff summaries into tickets with paths to changed fields. Reviewers approve fixes faster with textual diffs than screenshots alone.
Sort keys for stable git history
json-sort-keys alphabetizes object keys recursively where supported. Stable ordering makes Git diffs show intentional edits instead of random key shuffles from serializers.
Sorting does not alter array order, which often carries meaning. Confirm with your team before sorting documents where key order communicates priority. Automate sorting in CI when possible, but keep the FindMeTool page for ad hoc fixes on snippets from customers.
Incident response pattern
During outages, paste failing responses into json-validator, then json-formatter. Identify null fields, wrong types (string "42" vs number 42), or missing arrays. Share formatted excerpts in the war room chat with secrets stripped.
Compare last known good payloads with json-diff after deploys. Roll back when diffs show accidental schema changes. Record timestamps with unix-timestamp-converter from the reference section when correlating JSON logs across services. Public docs should show pretty JSON with consistent indent and sorted keys so readers never drift from production samples. Capture before and after snapshots with json-diff when reporting API regressions to upstream teams.
Numbers, nulls, and arrays
JSON distinguishes "42" from 42. APIs that stringify IDs cause subtle bugs in clients that compare with strict equality. json-formatter spacing makes quote patterns obvious at a glance. Null versus missing keys matters for PATCH semantics.
Arrays preserve order in JSON. json-sort-keys does not reorder array elements because position often encodes priority or timeline. When two arrays differ only by order, json-diff noise spikes. Decide whether order is meaningful before you treat differences as regressions. Large arrays in telemetry payloads are hard to read even when pretty printed, so filter in your query tool first.
Escaping, Unicode, and copy hygiene
Strings with embedded quotes, backslashes, or newlines need escaping. json-validator pinpoints broken escapes faster than reading one long line. Unicode characters display fine in pretty output, but some legacy systems expect ASCII escapes.
Browser devtools sometimes copy JSON with invisible characters or HTML wrappers. Paste into a plain text buffer first if json-validator reports odd errors at column one. Slack and chat apps may convert straight quotes to curly quotes, which breaks JSON. When sharing formatted JSON in tickets, use fenced code blocks in your tracker so reviewers copy clean text back into json-formatter.
Documentation and testing fixtures
Public docs should show pretty JSON with consistent indent and sorted keys. Generate samples from tests when feasible so docs never drift from production. Minify only in sections about wire format size, with a pretty version nearby for readability.
Store minimal JSON fixtures in repos for unit tests. Before review, run each fixture through json-validator and json-formatter so snapshots stay readable. When APIs version, json-diff two fixture files to document breaking changes in migration notes. Redact secrets in fixtures; use obvious placeholders like REDACTED_TOKEN so grep catches accidental commits. Link to FindMeTool json-formatter in internal wikis so new hires paste safely.
Common mistakes and practice
Trailing commas after the last property break strict JSON. Single-quoted strings belong to JavaScript, not JSON. NaN and Infinity are not valid JSON numbers. Unicode and escaped quotes confuse hand editing, so let validator pinpoint the column instead of guessing.
Try formatting a minified API login response, then sort keys and diff against yesterday's sample. Minify the result and confirm parsers still accept it. Break a file on purpose (remove a brace), run json-validator, fix, and reformat. FindMeTool JSON pages are free companions to your IDE. Bookmark them where you already keep http-status-codes for quick access. Repetition builds speed during incidents when every second of readable output matters.
Working with large payloads
Huge pasted files can slow tabs. Trim to the smallest reproducer before formatting entire multi-megabyte exports. Split arrays of events at time boundaries in your log tool, then paste one window into json-formatter for readable review.
When sharing excerpts externally, include a note about what you removed (PII, unrelated services) so recipients do not assume the snippet is the full payload. json-minifier helps when you need a compact attachment, but pretty output remains the default for human review during active debugging. During documentation sprints, link to FindMeTool json-formatter in internal wikis so new hires know where to paste safely without hunting for desktop plugins. Filter telemetry in your query tool before pasting entire multi-megabyte exports into the browser.
Related tools
More tutorials
Browse the full Tutorials hub or open a related tool above to try the workflow in your browser.