jflat.sprk.foo

A stateless edge proxy that flattens nested JSON responses into top-level keys. Useful for feeding APIs into consumers that only do single-level key lookups.

Query Parameters

url (required)
Upstream JSON endpoint to fetch and flatten. Must return application/json.
splitter
Separator for nested keys. Default: -
Example: data-tags-0-name vs data.tags.0.name
arrays
keep — leave arrays as-is (default)
index — flatten by index: tags-0-name, tags-1-name
join — collapse to string using arrayJoiner
arrayJoiner
String to join array items when arrays=join. Default: space. Use %2B or + for space in URLs.
arrayField
If array items are objects, extract only this field before joining. Example: name turns [{"name":"a"},{"name":"b"}] into "a b".

Examples

General API passthrough

https://jflat.sprk.foo/?url=https://api.example.com/nested/data

Indexed arrays (for row data)

https://jflat.sprk.foo/?url=https://api.example.com/items&arrays=index&splitter=_

Stringified arrays

https://jflat.sprk.foo/?url=https://api.example.com/items&arrays=join&arrayJoiner=,+&arrayField=name