Web

$jsonCount[json;path?]

How many items a list in the JSON text has. Without a path it counts the top level.

Values

json
JSON text, for example from $httpGet.
path
Optional. Where the value is, like data.items.0.name, with numbers for list positions starting at 0.

Example

$jsonCount[$httpGet[https://api.example.com/stats];items]

How many items the answer lists, like 2

All functions