AI Sidebar

Last updated on 25 Jun 2026

The AI sidebar is a feature of the JSONata Studio Playground that brings Anthropic's AI models to help you create, debug and optimise JSONata expressions. It can assist with tasks like:

  • Writing expressions to transform JSON data
  • Debugging syntax errors or unexpected results
  • Optimizing complex expressions for better performance
  • Explaining how specific JSONata functions work
  • Converting between different data transformation approaches

Available models

  • Claude Opus 4.1
  • Claude Opus 4
  • Claude Sonnet 4.5
  • Claude Sonnet 4
  • Claude Haiku 4.5
  • Claude Haiku 3.5

Usage requirements

The AI assistant is only available to authenticated users who purchase credits or bring a valid LLM provider key.

Credit balance and top-up

Users can top up their credit balance on a pay-as-you-go basis at any time from the Billing page. A paid grant expires 1 year after purchase.

A user's credit balance is the sum of all grants belonging to that user. It is displayed in the AI sidebar and updated in real-time. Spent credits are deducted from the grant or grants expiring the earliest.

Credits are non-refundable and non-transferable.

Users get the same amount of credits as they would if buying directly from the model provider. JSONata Studio charges only a fee of 5% (minimum of $0.50) based on the amount of each top-up at the point of purchase.

LLM provider key

Users can add an Anthropic API key from the AI Assistant Settings page.

The API key is encrypted at rest and valid until disabled or deleted.

Example usage

1. Open the AI sidebar by pressing the button labelled "Ask AI".

2. Enter a question in the input field, like so:

Where is the issue in my JSONata expression?

For tips on how to write an effective prompt, see Anthropic's usage limit best practices.

3. If your question relates to your JSON or JSONata input, you can include those as context by selecting the relevant checkboxes. In this example, we must include the JSONata expression:

$.a.b..c

4. Submit your question and wait for the AI to respond:

The issue in the JSONata expression $.a.b..c is the double dot (..) between b and c.

In JSONata, a single dot (.) is used to navigate through object properties, but two consecutive dots (..) is not valid syntax for property navigation.

The correct version would be: $.a.b.c

Data privacy

Your prompts, code snippets and any other data you submit will not be used to train models.

We log metadata (like the number of tokens used, the model name, and the timestamp) for billing and dashboard reporting.

If you enable chat history, the actual text of your conversations with the AI assistant will be stored. You can delete this data at any time.

Logs

AI message logs

Logs of your conversations with the AI assistant, including input and output tokens used per message, are displayed on the AI Logs page.

JSONata Studio does not store any input or output data from your AI conversations without your explicit consent.

Credit usage logs

Logs of your credit usage, including the amount of credits deducted per message, are displayed on the Credit Usage Logs page.

Disclaimer

The AI assistant is very capable, but it is not always correct and may produce incorrect or incomplete responses.