JSON Output Editor

Last updated on 5 Sep 2025

Overview

This is a read-only editor that shows the result of the evaluated JSONata expression in a JSON format.

It has several useful features allowing you to:

  • view evaluation and syntax errors
  • display the output in a table format
  • merge the JSON output into the JSON input
  • copy the JSON output to the clipboard

Errors

When there's an issue with the expression evaluation, the output editor may show an error, a warning or an infomation message along with a line and column number to help locate the issue.

Error messages

Interface

{
  error: {
    type?: string,
    message: string,
    lineNumber?: number,
    column?: number
    position?: number
  }
}

Examples

An invalid_jsonata message shows when one of the inputs is invalid, and could look like this:

{
  "error": {
    "type": "invalid_jsonata",
    "message": "Expected \")\", got \"}\"",
    "lineNumber": 5,
    "column": 1,
    "position": 43
  }
}

given the following JSONata expression:

(
  $a := 1;
  $b := $.b;
  $a + $b + $.c
}

No match is another common error which shows when the expression is valid but one of the variables failed to compute:

{
  "error": {
    "message": "No match"
  }
}

Warning messages

Interface

{
  warning: {
    type?: string,
    message: string,
    lineNumber?: number,
    column?: number
    position?: number
  }
}

This type of message will show when the JSON input object contains duplicate keys:

{
  "a": 1,
  "b": 2,
  "b": 2
}

and may look like this:

{
  "warning": {
    "message": "Duplicate object key in JSON input",
    "lineNumber": 5,
    "column": 3
  }
}

Information messages

Interface

{
  info: {
    type?: string,
    message: string,
  }
}

This type of message shows when the JSONata expression is empty:

{
  "info": {
    "message": "No expression to evaluate"
  }
}