Skip to content

jolt is convert large number into scientific notation #1286

Description

@yhjhoo

input

{
  "rating": {
    "primary": {
      "value": 60000000.1
    },
    "quality": {
      "value": 3
    }
  }
}

spec

[
  {
    "operation": "shift",
    "spec": {
      "rating": {
        "primary": {
          // simple match.  Put the value '4' in the output under the "Rating" field
          "value": "Rating"
        }
      }
    }
  }
]

ouput:

{
  "Rating" : 6.00000001E7
}

Expected output

{
  "Rating" : 60000000.1
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions