# Passing data as Integer instead of JSON string

**URL:** <https://community.hubspot.com/t/passing-data-as-integer-instead-of-json-string/142349>\
**Category:** CMS Development\
**Tags:** enterprise\
**Created:** [November 10, 2025, 10:21am UTC](https://community.hubspot.com/t/passing-data-as-integer-instead-of-json-string/142349 "2025-11-10T10:21:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alif-12](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@alif-12](https://community.hubspot.com/u/alif-12)\
**Post date:** [November 10, 2025, 10:21am UTC](https://community.hubspot.com/t/passing-data-as-integer-instead-of-json-string/142349/1 "2025-11-10T10:21:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Christensen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/christensen/32/24543_2.png) [@Christensen](https://community.hubspot.com/u/Christensen)\
**Post date:** [November 10, 2025, 10:58am UTC](https://community.hubspot.com/t/passing-data-as-integer-instead-of-json-string/142349/2 "2025-11-10T10:58:47Z")

</div>

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);”
