Skip to content
All guides

A little guidance

How to find a key or value in JSON

Use the find bar in JSON Prettifier to search keys and values, jump between matches and open the tree right to each one.

Advertisements

Search JSON

Find every book title

We typed title in the find bar and pressed the down arrow. The tree opened down to the second title and gave it a strong yellow background; the other titles are faint yellow.

The find bar with title typed in and the match count, the current title row in strong yellow and the other matches in faint yellow.
Find opens the path to each match. View full size
SearchMatches
title5 (one per item)
ana@1 (Ana’s email)
trueEvery true value

Find searches both keys and values.

Repeat this example

  1. Type title in the find bar.
  2. Use the up and down arrows, or Enter, to go through the matches.
  3. Clear the search with ×.

Check the result

The count goes up as you press the down arrow, and each title turns strong yellow in turn.

A common mistake

Expecting folded branches to open for every match: only the path to the current match is opened.

Open JSON Prettifier

Sources and credits

Sample JSON made for these guides. The bookshop orders, names and emails are invented. Every screenshot shows the real tool working on that JSON.

Type in the find bar

The find bar is at the top of the Preview. Type part of a key or value, such as title or an email address; upper and lower case don’t matter.

Move between matches

The count shows the current match, for example 2/5. Use the up and down arrows, or Shift+Enter and Enter, to go to the previous or next one.

See every match

All matches get a faint yellow background, and the current one a strong yellow. The path to the current match opens and it scrolls into view.

Clear the search

Click × in the find bar to clear it.

  • JSON Prettifier

    How to view and edit JSON in a tree

    JSON Prettifier shows JSON as a tree: open and close objects and arrays, see how many keys or items each one has, and change, add, move or delete keys and values in place.

Advertisements