Pinecone api call, embedding is a array but when put into http it's a string

having issues with trying to paste values from a pinecone embedding into the HTTP API call.
it’s result from the embedding is a array but when it’s entered into my API call, it’s a string,

yet when using a json verifying tool, it’s a verified json

current error i keep getting

i should also note when i minify or beautify it works fine hard coded in

Welcome to the Make community!

You need to convert the array into JSON string format first before you can map it into another JSON string.

To do this, you can try using the JSON “Transform to JSON” module —

Transforms any object to JSON.

For more information, see https://www.make.com/en/integrations/json, and https://www.make.com/en/help/app/json in the help centre.

Alternatively, you can use the built-in replace function.

For more information, do view these similar questions previously asked by other community members, which may answer your question:

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

3 Likes

brilliant. this solved it.

2 Likes

No problem, really glad I could help! Thank you for providing all the requested information — that allowed me to come to a solution quickly.

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

Getting Started

Help Centre Basics

Articles & Videos

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.