JSON

JSON Path Extractor / Flatten

Spłaszczanie (Flatten) zagnieżdżonego JSON do płaskiej listy "ścieżka: wartość" i odtwarzanie z powrotem struktury zagnieżdżonej (Unflatten). Notacja ścieżki jest taka sama jak w JSONPath/JSON Diff: store.book[0].price.

Najczęstsze pytania

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.