JSON Parser error Collection can't be converted to text


Would really appreciate some help with this problem.

I have a Vapi module that brings in JSON data and I want to pass one of the values to a mySQL module. I added a JSON parse module in order to pull the value out of JSON format to pass into the mySQL module to perform a query. The error I always get is


Validation failed for 1 parameter(s).

  • Collection can’t be converted to text for parameter ‘json’.

I’ve tried passing the JSON directly to the mySQL module but it only provides the raw collection so I can’t get the value out of it for my query. It seems to me that the JSON parser should be able to parse a JSON collection easily but after 15 hours or researching and hacking away at this problem I’m still where I started. Any ideas how to make this work or any workarounds? Disclaimer, I’m new to JSON, make and vapi so I hope I’m making sense.

Thanks, Mark

Welcome to the Make community!

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? 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:

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.

(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 TRIGGER module [1] by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.


Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-output-bundle.txt (12.3 KB)


If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    input/output bundle content goes here

  • Or use the format code button in the editor:

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

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

1 Like

Parse JSON expects a text string containing properly formatted JSON and then creates the necessary bundles composted of arrays and collections inside the original text string.

You have what appears to be a Vapi trigger which will generate already parsed output bundles ready to be used by other modules so you won’t have any JSON coming out of Vapi (unless of course one of the elements is a JSON string). From your screen shot that does not appear to be the case that Vapi is sending out any JSON strings so you don’t really need to Parse JSON there.

If you show us the output bundle from the Vapi trigger we can help you identify what to map into your MySQL module for searching. Most likely you can map the value directly into the MySQL module but it all depends what you need to get from the Vapi trigger.

Alex Sirota
Director of NewPath Consulting - we are :superhero: Make Heroes! :woman_superhero:t4:

:heart_on_fire: Check out my series of videos and scenario walkthroughs for Make Newbies :heart_on_fire:

My Solutions on Make Community

1 Like