JSON

JSON Path Extractor / Flatten

แปลง JSON แบบซ้อนกันให้เป็นรายการแบบแบน "เส้นทาง: ค่า" (Flatten) และประกอบกลับเป็นโครงสร้างซ้อนกัน (Unflatten) รูปแบบเส้นทางเหมือนกับใน JSONPath/JSON Diff: store.book[0].price

คำถามที่พบบ่อย

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.