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.

[
{
"key": "username",
"value": "Morgan"
},
{
"key": "email",
"value": "m@test.com"
}
]
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.

Read integration guide

Works with:

  • API responses
  • Nested JSON
  • Arrays & objects

Example: input → output

Input / Output
Input
[
{
"key": "username",
"value": "Morgan"
},
{
"key": "email",
"value": "m@test.com"
}
]
Output
{
"username": "Morgan",
"email": "m@test.com"
}

Related tools

Advanced usage (optional)

Entries

v1.0.0
Structure
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

NameTypeDefaultDescription
ModeenumfromEntriesfromEntries: convert [{key, value}] array to object. toEntries: convert object to [{key, value}] array. fromEntries toEntries
Key FieldstringkeyField name used for the key in each entry object
Value FieldstringvalueField name used for the value in each entry object
Target Pathspath-picker[]Scope operation to specific paths only (empty = apply to root)

Examples

AI Prompt
Convert this key-value array into an object.
[
{
"key": "username",
"value": "Morgan"
},
{
"key": "email",
"value": "m@test.com"
}
]
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}