dev

Flatten a nested JSON object/array into dot-notation keys.

Flatten a nested JSON object/array into dot-notation keys. POST { data, delimiter? }. E.g. {a:{b:[1,2]}} → {"a.b.0":1,"a.b.1":2}. Useful for diffing, CSV export, search indexing, or feeding flat key/value config to tools.

post/api/dev/flatten-json

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/dev/flatten-json
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Request body

dataunknown
delimiterstring

Delimiter.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.