Categories

JSON Data Lineage Tracer

Trace JSON field paths, derived dependencies, and transformation history to build a field-level lineage graph

Example Results

1 examples

Trace API response lineage with derived fields

List every JSON path, then overlay explicit ETL-style derivation rules for totals and display labels

{
  "summary": {
    "fieldCount": 9,
    "derivedFieldCount": 2
  },
  "graph": {
    "nodes": [
      {
        "id": "$.order.totalUsd"
      }
    ]
  }
}
View input parameters
{ "sourceJson": "{\n \"order\": {\n \"id\": \"ORD-1001\",\n \"customer\": {\n \"firstName\": \"Ada\",\n \"lastName\": \"Lovelace\"\n },\n \"totalCents\": 2599\n }\n}", "lineageRulesJson": "{\n \"rules\": [\n {\n \"target\": \"$.order.totalUsd\",\n \"sources\": [\n \"$.order.totalCents\"\n ],\n \"transforms\": [\n \"divide_by_100\",\n \"round(2)\"\n ]\n },\n {\n \"target\": \"$.order.customerLabel\",\n \"sources\": [\n \"$.order.customer.firstName\",\n \"$.order.customer.lastName\"\n ],\n \"transforms\": [\n \"concat(\\\" \\\")\"\n ]\n }\n ]\n}", "includeContainerNodes": true, "maxFields": 200 }

Key Facts

Category
Data Processing
Input Types
textarea, checkbox, number
Output Type
json
Sample Coverage
4
API Ready
Yes

Overview

The JSON Data Lineage Tracer is a data engineering utility that maps field paths, derived dependencies, and transformation histories within JSON structures. By combining source JSON data with optional derivation rules, it generates a comprehensive field-level lineage graph to help you visualize how data flows and transforms across your ETL pipelines or API responses.

When to Use

  • When auditing ETL pipelines to understand how specific JSON fields are derived from raw source data.
  • When documenting API responses to show downstream consumers the exact origin of aggregated or transformed fields.
  • When debugging complex data mappings where you need to trace the transformation history of specific values.

How It Works

  • Paste your raw JSON payload into the Source JSON field to establish the base data structure.
  • Optionally, provide a Lineage Rules JSON to define how derived fields are calculated from source paths using specific transformations.
  • Toggle whether to include container nodes (objects and arrays) and set a maximum field limit for the output.
  • The tool processes the inputs and generates a structured JSON lineage graph detailing field counts, derived dependencies, and transformation steps.

Use Cases

Mapping data transformations in ETL workflows to ensure compliance and data integrity.
Creating technical documentation for API endpoints that return aggregated or calculated metrics.
Troubleshooting data discrepancies by tracing the origin and transformation steps of specific JSON properties.

Examples

1. Tracing API Response Derived Fields

Data Engineer
Background
An API returns a customer order payload where some fields are calculated on the fly, such as converting cents to dollars and combining names.
Problem
Need to document exactly how the 'totalUsd' and 'customerLabel' fields are derived from the raw database output.
How to Use
Paste the raw order JSON, then input the derivation rules specifying that 'totalUsd' comes from 'totalCents' divided by 100, and 'customerLabel' concatenates 'firstName' and 'lastName'.
Example Config
{
  "rules": [
    {
      "target": "$.order.totalUsd",
      "sources": ["$.order.totalCents"],
      "transforms": ["divide_by_100", "round(2)"]
    },
    {
      "target": "$.order.customerLabel",
      "sources": ["$.order.customer.firstName", "$.order.customer.lastName"],
      "transforms": ["concat(\" \")"]
    }
  ]
}
Outcome
A JSON lineage graph is generated showing 9 total fields, explicitly linking the 2 derived fields to their original sources and transformation steps.

2. Mapping Flat JSON Structures

Backend Developer
Background
A legacy system outputs a large, nested JSON file with dozens of keys that need to be mapped to a new schema.
Problem
Need a quick inventory of all JSON paths without worrying about derived fields or complex transformations.
How to Use
Paste the source JSON, leave the lineage rules blank, uncheck 'Include Object And Array Nodes' to focus only on leaf values, and run the tool.
Outcome
A clean JSON graph listing all absolute paths for the leaf nodes, making it easy to copy into a mapping spreadsheet.

Try with Samples

json

Related Hubs

FAQ

What format should the lineage rules be in?

The rules should be a JSON object containing a 'rules' array, where each rule specifies a 'target' path, an array of 'sources', and an array of 'transforms'.

Can I trace lineage without providing rules?

Yes, if you only provide the source JSON, the tool will map the base field paths without any derived dependencies.

What does the 'Include Object And Array Nodes' option do?

It determines whether parent container structures are included as distinct nodes in the lineage graph, or if only leaf nodes (actual values) are mapped.

Is there a limit to how many fields I can trace?

Yes, you can configure the maximum number of fields in the output, ranging from 10 up to 2,000.

What does the output look like?

The output is a JSON object containing a summary of field counts and a graph object detailing the nodes and their derivation paths.

API Documentation

Request Endpoint

POST /en/api/tools/json-data-lineage-tracer

Request Parameters

Parameter Name Type Required Description
sourceJson textarea Yes -
lineageRulesJson textarea No -
includeContainerNodes checkbox No -
maxFields number No -

Response Format

{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
JSON Data: JSON Data

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-json-data-lineage-tracer": {
      "name": "json-data-lineage-tracer",
      "description": "Trace JSON field paths, derived dependencies, and transformation history to build a field-level lineage graph",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=json-data-lineage-tracer",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]