Created
January 23, 2022 07:07
-
-
Save mrkhedri/08e5fb36d6ccd5b8eedd44b5cc835ec1 to your computer and use it in GitHub Desktop.
Jolt transform int with E mathematical symbol to integer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Json Input | |
| { | |
| "num": 1.3990102E7 | |
| } | |
| // Jolt Spec | |
| [ | |
| { | |
| "operation": "modify-overwrite-beta", | |
| "spec": { | |
| "num": "=toInteger" | |
| } | |
| } | |
| ] | |
| // Output | |
| { | |
| "num" : 13990102 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment