---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

1.  [](/)
2.  [Capabilities](/capabilities)
3.  JSON Transform

Back to Capabilities

Transformation

# JSON Transform

Transform document payloads using JSONPath expressions and mapping rules

[Try Transform](/start)

### Why do anything?

Document schemas may not match consumer expectations. Transformation enables schema adaptation.

### Why now?

Different consumers need different views of the same data.

### Why this feature?

Transform document payloads with JSONPath selection, field mapping, and computed fields.

## How It Works

JSON transform modifies document payloads during retrieval.

1

#### Rule Parsing

Parse transformation rules

2

#### Field Selection

Select fields with JSONPath

3

#### Mapping

Apply field mappings and renames

4

#### Computation

Compute derived fields

### Why This Approach

JSONPath provides powerful selection. In-pipeline transformation avoids post-processing.

## Where This Is Used

[

Enterprise

#### API Response Adaptation



](/enterprise)

## Integration

PythonAPI

retriever = client.retrievers.create(stages=\[{"type": "json\_transform", "mappings": {...}}\])

[View Documentation](https://mixpeek.com/docs/retrieval/retrievers)

## Related Capabilities

[

often combined

#### Llm Enrich

Transform after enrichment



](/capabilities/llm-enrich)