May 17, 2022 12:18 PM
Hi there - How is it possible to parse (convert string into object with keys) in airtable scripting?
Here is some sample string text:
{
a: 'somestring',
b: 42,
c: false
},{
a: 'somethine else',
b: 10,
c: true}
The output should be two objects with three keys
May 17, 2022 01:16 PM
If your string were JSON, you could use JSON.parse()
, but your string is not quite JSON. Can you get the string sent to you as JSON?
May 17, 2022 01:59 PM
Thanks. I am creating the string via Airtable scripting and reading it there as well.
May 18, 2022 07:26 AM
Instead of (or in addition to) making the string in scripting, why not just make the object directly?