Entries (Free Online Tool)
Convert objects to key-value entry arrays or rebuild objects from entries
Paste your JSON → Get results instantly (no signup)
⚡ Instant resultsNo signupRuns in your browser
Try examples:
→ Convert this key-value array into an object.
Output✓
Output✓
1{2 "username": "Morgan",3 "email": "m@test.com"4}Love the result?
Use this exact pipeline in your app, backend, or LLM workflow.
No setup needed. Works with curl, Node, Python.
Uses example data. For edited input, copy from the playground.
Works with:
- API responses
- Nested JSON
- Arrays & objects
Example: input → output
Input / OutputInputOutput
Input
[ { "key": "username", "value": "Morgan" }, { "key": "email", "value": "m@test.com" }]Output
{ "username": "Morgan", "email": "m@test.com"}Related tools
- Rename KeysRename known keys or convert key casing without changing the underlying values
- Find & ReplaceFind and replace matching keys or values across JSON using broad search patterns
- FilterFilter rows, items, keys, or values by explicit conditions and keep only the matches you want
- Flatten / NestConvert nested objects to flat key paths or rebuild them using delimiter and casing rules
- Pick FieldsKeep only a known allowlist of fields and remove everything else
Advanced usage (optional)
Entries
v1.0.0Structure
objectarraydestructivereversible
Description
Entries
Convert between objects and key-value pair arrays.
- fromEntries —
[{key: "a", value: 1}]→{a: 1} - toEntries —
{a: 1}→[{key: "a", value: 1}]
Custom key/value field names are supported (e.g. name/data instead of key/value).
Useful for ordered diffs, patch processing, and working with APIs that return configuration as key-value arrays.
Configuration
| Name | Type | Default | Description |
|---|---|---|---|
| Mode | enum | fromEntries | fromEntries: convert [{key, value}] array to object. toEntries: convert object to [{key, value}] array. fromEntries toEntries |
| Key Field | string | key | Field name used for the key in each entry object |
| Value Field | string | value | Field name used for the value in each entry object |
| Target Paths | path-picker | [] | Scope operation to specific paths only (empty = apply to root) |
Examples
AI Prompt
Convert this key-value array into an object.Output✓
Output✓
1{2 "username": "Morgan",3 "email": "m@test.com"4}Config
Mode
fromEntries
Key Field
key
Value Field
value
API Usage
POST /api/v1/utilities/structure.entries
Example:
curl -X POST https://your-domain.com/api/v1/utilities/structure.entries \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"inputs":{"primary":[{"key":"username","value":"Morgan"},{"key":"email","value":"m@test.com"}]},"config":{"mode":"fromEntries","keyField":"key","valueField":"value"}}'Response
1{2 "username": "Morgan",3 "email": "m@test.com"4}