API Action - Cannot pass non-string dynamic value

In the API connecter I am trying to dynamically pass an integer in the amount field. The problem is that Wappler keeps forcing it into a string. When I delete the quotes, and hit save, Wappler automatically re adds them.

The only way the JSON editor will accept a value without quotes is if I manually type them in. This is a problem because I need that value to be dynamic.

This API will not accept a string for the amount value.
The API returns a "Malformed JSON error when I have the API Action’s data type value set to auto, text, or form. So I must have the JSON typed out in Wappler’s editor.

Ive tried going into Wappler’s setting and turning off format document on save and auto close tags. This did not help.

Is there anything I can do here?

Found the solution thanks to a reply on a post from @Patrick. Posting here just in case anybody else gets stuck on this.

In the above example just change “amount”: “{{payment}}”, to “amount”: “{{payment.toNumber()}}”,