I have data from a webhook as a basis and have put it into a Parse JSON. I want to enter this JSON data as request content in an HTTP(Post). I have to insert data of type TEXT in “ ” and data of type BOOLEAN without “ ”. That works fine. But how do I enter data of type NUMBER? I get error messages here. I could create a string from each of the number data items using transform to JSON and then use that, but I would have to transform a lot of individual data items.
Is there a simple solution?
If I understand you well
You are pulling data from a webhook, then parsing it into JSON, and then trying to send that data in an HTTP POST request.
Text values work when you put them in “" “ and booleans work without quotes, but numbers are causing errors because Make is treating them as text instead of real numbers. You’re looking for a simpler way to send them as actual numbers without converting each one separately.
This might Help
When you add the data to your HTTP request, wrap any number fields with parseNumber().
This makes Make send them as real numbers instead of text.
This way, text stays in quotes, numbers remain numbers, and booleans stay true/false.
Hey @Tom_Schwenke and Welcome to the Make Community!
For this very reason I would advise not inputting text and variables directly in the HTTP body.
I believe your best option here is to use a Create JSON module prior to your HTTP call (or Aggregator to JSON if you’re passing an array of objects).
The output of Create/Aggregate JSON would need to be mapped in as the body of your HTTP call.
JSON modules handle all the necessary encoding and all you need to do is define the correct data structure then fill in the blanks.
Hope that made sense and hope it helps!