---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/tools/data_structure/variables/jsonTransformTool.md
description: Apply a pipeline of operations to a JSON array or object.
---

# Variable: jsonTransformTool

```ts
const jsonTransformTool: Tool<SpooledArtifact>;
```

Defined in: [batteries/tools/data\_structure/index.ts:273](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/tools/data_structure/index.ts#L273)

Apply a pipeline of operations to a JSON array or object.

## Remarks

Operations are applied in order; each step transforms the output of the previous. Supported
operations: `filter`, `sort`, `select_keys`, `pluck`, `slice`, `unique`, `unique_by`,
`group_by`, `flatten`, `reverse`, `count`, `sum`, `avg`, `median`, `min`, `max`, `first`,
`last`, `chunk`, `frequency_count`, `top_n`, `map_template`. Dot-notation paths are supported
for nested key access in every operation that takes a `key` field.
