• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    πŸš€ Exclusive Lifetime Offers πŸš€

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • πŸ”₯ Pabbly Connect β€” Lifetime Access for $249 β€” View Offer
    • πŸ”₯ Pabbly Subscription Billing β€” Lifetime Access for $249 β€” View Offer
    • πŸ”₯ Pabbly Chatflow β€” Lifetime Access for $249 β€” View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

  • 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.

Status
Not open for further replies.

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:
Status
Not open for further replies.
Top