Passing data as Integer instead of JSON string

alif-12
Member

Hi there!

I have data on my HubSpot that, even when the data type is number, it is not passed to another platform as an integer but as a JSON string instead. For example: "subscription_lifetime_absolute_days": "1". How can I ensure the data is passed as an integer, as the next platform cannot perform data transformation?

Thank you.

0 Upvotes
1 Accepted solution
Christensen
Solution
Contributor

Hi @alif-12 , are you able to parse the number into integer when passing it to the JSON body? If you are in HubL then it can be as easy as "youVar|int" or in JavaScript "parseInt(yourVar);"

View solution in original post

1 Reply 1
Christensen
Solution
Contributor

Hi @alif-12 , are you able to parse the number into integer when passing it to the JSON body? If you are in HubL then it can be as easy as "youVar|int" or in JavaScript "parseInt(yourVar);"