홈
Tom Utilities

JSON 평탄화 및 복원

JSON 도구

중첩된 JSON을 점 표기 키로 변환하고 평면 데이터에서 중첩 객체를 다시 만듭니다.

입력

결과

사용 방법

Flatten nested JSON

Paste nested JSON and run Flatten. Arrays become numeric keys, for example user.roles.0.

  1. Paste nested JSON.
  2. Click Flatten.
  3. Copy the flat JSON output.

Unflatten key paths

Paste a flat object and run Unflatten. Numeric path segments are converted back into arrays automatically.

자주 묻는 질문

How are arrays represented?

By default each array element gets a numeric segment, such as items.0.name. Empty arrays and objects are preserved as values.

Can I use a different separator?

The UI uses a dot separator. For custom separators, use the underlying library behavior in your own code.