Transformation
Parse Numbers Within Objects
Overview
This JST allows IAP users to convert strings and strings within objects to numbers. Since the JST uses the JavaScript function parseFloat to perform this type of conversion, conversion of strings with floating point numbers is also supported in addition to integers. The supported input types are: string
, object
and array
. For arrays and objects, the JST will convert strings in the first level only (at this time, recursion is not yet supported by JST), all other levels will remain as is. In the case of an object or an array of objects, users can choose to specify the key-value pairs to be converted in all elements of the array. If not specified, all key-value pairs will attempt to be converted. Please note, if an invalid (non-number) string is passed to the JST, the JST will return the string as is without attempting the conversion rather than erroring out.
How to Install
To install the Pre-Built:
- Verify you are running a supported version of the Itential Automation Platform (IAP) as listed above in the Prerequisites section.
- The Pre-Built can be installed from within
App-Admin_Essential
. Simply search for the name of your desired Pre-Built and click the install button.