data
to refer to the JSON object. Use JavaScript expressions. This tool allows you to query and extract data from JSON using standard JavaScript expressions. The JSON data is assigned to a variable called data
, which you can use in your queries.
Example queries:
data.users.filter(user => user.age > 30)
- Get users older than 30data.products.map(p => p.name)
- Extract names onlydata.orders.reduce((sum, order) => sum + order.total, 0)
- Calculate total valueObject.keys(data.settings)
- Get all keys from settings objectYou can use all valid JavaScript expressions, including filter, map, reduce, find, and standard object methods.