AI Sidebar
Last updated on 26 Oct 2025
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
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..cis the double dot (..) betweenbandc.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
Credit balance and top-up
The AI assistant is only available to authenticated users with a positive credit balance.
On sign-up, a successfully registered user will receive a small amount of credits to try out the feature. This promotional grant expires 1 year after it was granted.
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.
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.