bazaarvoice / jolt

JSON to JSON transformation library written in Java.
Apache License 2.0
1.55k stars 330 forks source link

bug on reading timestamp value #1253

Closed mordfustang00 closed 4 months ago

mordfustang00 commented 4 months ago

Good day. I would like to seek for your assistance to check the bug seen on the following scenario:

Input: { "Car": { "Status": { "Date": 20230427004209.977 } } }

Spec: [ { "operation": "shift", "spec": { "Car": { "Status": { "Date": "Car.Status.Date" } } } } ]

{ "Car" : { "Status" : { "Date" : 2.0230427004209977E13 } } }

The date input appears to be truncated into decimal with extra values at the end.

Do we have a workaround to make the input same as output?

Thanks.

mordfustang00 commented 4 months ago

did substring+concat to maintain input value