• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

  • Important: Any reported problems and issues with your integration will be reported to you and we will encourage the app developers help to resolve those integration issues.

How to use numeric() prefix in JSON.

What is numeric() prefix​


The numeric() prefix is an advanced built-in function that is used to convert a value mapped inside it into a numerical format. This prefix is commonly used in request JSON when certain values such as age and zip code need to be converted to numerical format.

For instance, consider the following example:
JSON:
{
  "name": "John",
  "age": "numeric({{age}})",
  "address": {
    "street": "123 Main St",
    "city": "Anytown",
    "zipcode": "numeric({{zipcode}})"
  }
}

In this JSON, the age and zip code are enclosed in the numeric() prefix to convert them to numerical format.

When a user fills in the age and zip code values in the workflow page or maps them from a previous step, the values are returned in numerical format, as shown below:
JSON:
{
  "name": "",
  "age": 23,
  "address": {
    "street": "ferwr"
    "zipcode": 462016
  }
}

Using the numeric() prefix can ensure that certain values are always returned in numerical format.

How to Use nemric() prefix:

In the given example API endpoint requires the value of age and zipcode in number format. So I'll map age and zipcode inside numeric() prefix like this -
1683265974237.png


In the workflow page when the user will fill age and zip code value or map from previous step -
1683266537021.png


I'll get age and zipcode in the number format like this -
1683266608143.png
 
Last edited by a moderator:
Top