Having trouble retriving data from JSON in a string

Hi

I’m having an issue which I’m sure is easy but I cannot get my head round it.

Jotform passes me a chunk of JSON in a single string, strangely with all quotes escaped:

"[{\“Firstname\”:\“Fred\”,\“Lastname\”:\“Flintstone\”,\“Job Title\”:\“Supervisor\”,\“Email":\“fred@bedrock.com\”},{\“Firstname\”:\“Barnie\”,\“Lastname\”:\“Rubble\”,\“Job Title\”:\“Dogsbody\”,\“Email\”:\“barney@bedrock.com\”}]”

I want to turn this into an array to use to updae Airtable. Any thoughts rather than me getting more and more frustrated?

TIA
MIke

Welcome to the Make community!

1. Screenshots of module fields and filters

Please share screenshots of the scenario – relevant module fields and filters, especially the module that outputs the JSON with escaped quotes? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Output bundles

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the contents as a text file, and upload it here into this discussion thread:
Screenshot_2023-10-06_141025

Providing the output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service (Jotform).

Following these steps will allow others to assist you here. Thanks!

2 Likes

Hi @mdb213

If your input is like a text, please use the below formula to make suitable json format.
{{replace(replace(replace(replace(13.input; “\“”; “”“”); “\””; “”“”); “”“[”; “[”); “]””; “]”)}}

image
2.
image
3.
image
image
4.

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support
Visit us here
Youtube Channel

2 Likes