Retool no longer forces precise JSON expressions. See below for equivalencies.
// Property keys no longer need to be quoted
{ "id": 123 }
// before
{ id: 123 }
. // after
// Property values can be in single quotes
{ "name": "Ashley" }
// before
{ name: 'Ashley' }
// after
// Trailing commas are allowed
[1,2,3] // before
[1,2,3,] // after
- Dynamic expressions are still valid, see below for some examples:
// Use
{{}}
as proeprty values
{ name: {{ textinput1.value }} }
// Use {{}}
as items in an array, or a
{ age: [1, 2, {{ 3 }}, 4, 5] }
// Use {{}}
within property value strings
{ message: 'Hi {{ textinput1.value }}' }