bazaarvoice / jolt

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

Pulling my hair out on the mongodb ISODATE field #1117

Open andrewatjanover opened 2 years ago

andrewatjanover commented 2 years ago

INPUT Json:

[ { "RUNDATE": "12/13/2021" }, { "RUNDATE": "12/13/2021" } ]

EXPECTED OUTPUT [ { "rundate" : ISODATE("12/13/2021") } ]

Not too many useful articles on how to insert the date as an ISODATE. Thanks for your help in advance. Essentially the ISODATE throws an exception because it's not valid JSON, but then how does one get an ISODATE valid field in their json?