Is this a bug? Api action json data, i cant format correctly the values of an array

Hi, I am working with an api which requires that I send with the POST method an array with 2 number fields: “unit_price” and “quantity”.
I get these values from this query:

So this is my code inside data json calling the query array:

This is the api response:

As you can see it says: “items.0.quantity must be a number”

So the problem is that the json puts the fields as strings:

"unit_price": "54.00",
"quantity": "1"

And it should be of type number:

"unit_price": 54.00
"quantity": 1

Without the quotes in the numbers

I already tried calling the query in the following way:

{{customv.toNumber()}} and {{customv.values()}}

But it does not work.

I tested using:

{
  "items": [
    {
      "quantity": 1,
      "unit_price": 45
    }
  ]

And of corse it works ok
I tryed with a normal Database Query and with a Custom Query as u can see in the images.

I hope you guys can tell me if it is a Wappler bug or there is something I am not seeing.
Thanks in advance.

Community Page
Last updated: