Mongo _id kettle
1 answer
Once you have the _id, convert it to extended JSON notation as denoted by Stennie with a Modified Javascript Value
script like:
var _id = '{ "$oid": "' + _id + '" }';
In step, MongoDB Output
set column JSON
to Y
for row _id
. I'm not sure when this JSON variant was introduced, but found it in the latest CI Kettle build today.
+2
source to share