Processed on your device

JSON keep or remove properties

Keep (pick) only the top-level properties you list in a JSON object, or remove (omit) them and keep the rest.

1

Make it yours

No uploads

Ready when you are. Nothing runs until you choose.

2

Your result

Your result will appear here.

About JSON keep or remove properties

Use this to cut one JSON object down to the properties you want. Type the keys, separated by commas, and choose an Action. Keep only the listed properties reduces a large record to the fields you need, for example a customer's name and email for a small test fixture. Remove the listed properties drops sensitive or noisy fields, such as a password hash, an internal ID or a large nested address, before you share or store the record.

How it works

StillKit parses the text as strict JSON and requires the outer value to be an object. It splits your list at the commas and trims the spaces around each key. It then goes through the object's top-level properties in their original order and copies each one whose key is in your list, or each one whose key is not, depending on the Action. Values are copied whole, nested objects included.

Tips

  • Spaces around the commas are ignored, but key names must match exactly, including capitals.
  • A listed key that is not in the object is skipped without a warning. Check the result: after a misspelling, a wanted field is missing or an unwanted one is still there.
  • The kept properties stay in the object's original order, not the order you typed.
  • Only top-level keys count. A key with the same name inside a nested object is neither kept on its own nor removed.
  • The tool takes a single object. For an array of records, JSON array pluck pulls one property out of every record.
GOOD TO KNOW

Limits

Maximum 1 MB input, 100 levels of nesting and 50,000 nodes. JSON only; no expressions are evaluated. Output is inert text. Number precision follows JavaScript; use strings for large exact integers. Top-level keys of one object only; a listed key that is not in the object is ignored.

How tools run on your device →
EXAMPLE

A worked example

Example input

JSON: {"name":"Asha","active":true,"scores":[92,88],"address":{"city":"Colombo"}}
Comma-separated keys: name,active
Action: Keep only the listed properties

Example result

{
  "name": "Asha",
  "active": true
}

Questions and answers

Should I keep the listed properties or remove them?

Keep is the safer choice before sharing: only the fields you name leave, even if the record later gains new ones. Remove suits a record you mostly want as it is, minus a few named fields such as a password hash.

Can it reach a property inside a nested object?

No. Only the top level is read, so address.city or /address/city is treated as an ordinary key name and matches nothing. To read one nested value, use JSON Pointer extractor.

What happens if I list every key, or none that exist?

Keeping every key returns the object unchanged, and removing every key returns an empty object, {}. With keys that match nothing, keeping gives {} and removing gives the whole object back.

Find your next shortcut

Search loads only when needed. Your search stays on your device.

Browse all categories and sections →