Counting happens in your browser. The JSON you paste or upload is not sent to our server.
If the JSON is invalid, the counter tells you what is wrong and on which line, for example a trailing comma or a key in single quotes.
{ } and [ ] in the document, at any depth. Keys is the total of all keys in all objects.true and false), nulls, objects and arrays, each counted once.[*] standing for any array item, for example $.data[*].price, with its type, how many times it occurs, and array sizes from smallest to largest.To pull out only some of the items, use the JSON Filter; to read the data as a tree, use the JSON Viewer.
Updated November 2026
data, find $.data under Every path: its count is the number of records.{"a": {"b": [1]}} the number 1 is at depth 3: the outer object, the inner object, the array, then the value.$.users[*].email covers the email of every user, so its count tells you how many users have an email.