JSON

JSON Path Extractor / Flatten

Meratakan (Flatten) JSON bersarang menjadi daftar datar "jalur: nilai" dan menyusunnya kembali menjadi struktur bersarang (Unflatten). Notasi jalur sama seperti di JSONPath/JSON Diff: store.book[0].price.

Pertanyaan yang sering diajukan

Why would I flatten a JSON document?

A flat "path: value" list is handy for exporting to a spreadsheet, comparing values, or finding a specific field in a large nested document without scrolling through the structure.

How are array elements represented in the path?

Array elements get indexed keys in square brackets, like store.book[0].price — the same path notation used by the JSONPath and JSON Diff tools.

Does Unflatten always rebuild the exact original structure?

Yes, as long as the paths do not contradict each other. If two paths imply different value types at the same point (say, an object and a primitive), the tool reports a conflict instead of silently overwriting one.