I made a text input which get text from api call response (by query).
but when I setValue to {{JSON.stringify(my_api_query.data, null, 4)}}
, it doens't create any indentation in my result.
so, i want to make a value something like the way Chrome browser does:
const input = {
"a": "1",
"b": "2",
"c": "3"
};
const result = JSON.stringify(input, null, 4);
console.log(result);
// result:
{
"a": "1",
"b": "2",
"c": "3"
}
Currently, in Retool:
{
"a": "1",
"b": "2",
"c": "3"
}