TBToolbox
Developer Tools

Extract JSON Values

Extract JSON Values parses the document, recursively visits Object.values for objects and arrays, and writes primitives one per line with String(value). Property paths, keys, types, quoting, and container boundaries are discarded: null becomes null, strings lose quotes, and values containing line breaks can disrupt the line-oriented result. Traversal order follows JavaScript property enumeration and array order.

Runs locally — files stay on your device
Quick answer

Are property names included?

No. Only primitive values are listed.

Value extraction intentionally loses context

Without paths and types, identical printed lines can originate from different locations or data types.

How it works

Objects and arrays recurse through Object.values; nonobjects are converted with String and appended.

Key concepts

Depth-first traversal

Nested values appear where their container is visited.

Type erasure

The string "1" and number 1 both print 1.

When to use it

  • Create a quick human-readable leaf list.
  • Inspect all primitive content in a small document.
  • Search values without keys.

When not to use it

  • Do not expect reversible output.
  • Do not use when paths or types matter.
  • Do not treat line boundaries as safe framing.

Worked examples

Object

Input
{"a":1,"b":true}
Expected output
1\ntrue

Keys disappear.

Array

Input
["x",null]
Expected output
x\nnull

Array order remains.

Nested

Input
{"x":{"y":"z"}}
Expected output
z

Path is omitted.

Common mistakes

Reimporting output

Structure and types are lost. Correction: Export paths and JSON-encoded values.

Assuming unique lines

Duplicates remain. Correction: Deduplicate deliberately if appropriate.

Ignoring multiline strings

They can look like multiple values. Correction: Use structured output.

Best practices

  • Use for inspection only.
  • Keep the source JSON.
  • Choose JSON Pointer plus typed values for machine use.

Related operations and differences

CSV to JSON

Choose CSV to JSON when you need to convert a header-based CSV table to JSON.; use Extract JSON Values specifically for json extract values.

JSON Beautifier

Choose JSON Beautifier when you need to format JSON with readable indentation.; use Extract JSON Values specifically for json extract values.

JSON Flattener

Choose JSON Flattener when you need to flatten nested objects into dot paths.; use Extract JSON Values specifically for json extract values.

JSON Key Sorter

Choose JSON Key Sorter when you need to sort object keys recursively.; use Extract JSON Values specifically for json extract values.

JSON Minifier

Choose JSON Minifier when you need to remove unnecessary JSON whitespace.; use Extract JSON Values specifically for json extract values.

JSON String Escape

Choose JSON String Escape when you need to escape text for a JSON string value.; use Extract JSON Values specifically for json extract values.

Limitations and privacy

  • No paths, keys, types, quoting, escaping, deduplication, filters, CSV/JSON output, or reversible mapping.
  • Multiline strings are ambiguous.

Input is processed locally in this browser and is not uploaded by the tool.

Frequently asked questions

Are arrays traversed?

Yes.

Are duplicate values removed?

No.

Are types preserved?

No.

Is null included?

Yes, as the text null.