I have an automation that takes a record and transforms all the data within it to a custom json data structure.
The final line of this script looks like
await table.updateRecordAsync(targetRecord, {
'json': JSON.stringify(recordOutput, null, 2).replace(/\\"/g, '"')+"\n"
}
Where recordOutput contains my json structure and all mapped values for the record that was triggered. This works fine, the Airtable field json looks exactly how I’d expect:

(double clicking on any of these fields reveals the rest of the output).
Here’s the issue:
- When I copy these fields, I get a string where each object and text string is wrapped in an extra double quote:
"{
""display"": true,
""featured"": false,
""sortNumbers"": [
-
If I double click the field, and then
cmd+ato select all of it, and copy, it does copy the version I want (without the excessive quote wrapping)- However, I need to be able to copy many cells at once (the whole column), and when I try to do that, I always get the extra quoted version.
-
In Excel, I’d use a function called
clean()in the formula, which would remove characters injected by the app -
Ideally I wouldn’t just substitute/replace, because some quotes in my
jsonare intentional (there are many strings)
