JSON
JSON Path Extractor / Flatten
Làm phẳng (Flatten) JSON lồng nhau thành danh sách phẳng "đường dẫn: giá trị" và dựng lại thành cấu trúc lồng nhau (Unflatten). Ký hiệu đường dẫn giống với JSONPath/JSON Diff: store.book[0].price.
Câu hỏi thường gặp
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.