type
String / MiscReturns the JSON type of the current value as a string: "array", "object", "string", "number", "boolean", or "null". Useful for debugging pipeline shape.
Syntax
typeUse cases
| Use case | Description | URL | |
|---|---|---|---|
| Check API response shape | Verify whether an API returns an array or an object at the top level. | https://httpip.es/api/pipe/fetch:https://api.github.com/users/octocat/repos|type | |
| Check scalar result | Confirm that count returns a number, not an array. | https://httpip.es/api/pipe/fetch:https://api.github.com/users/octocat/repos|count|type | |
| Check get result type | Verify the type of a nested field before further processing. | https://httpip.es/api/pipe/fetch:https://jsonplaceholder.typicode.com/users/1|get:address|type |