Hi,
I have a project where we would to leverage Mongodb oplog to get our mongodb in synch with our redis cache.
Below is what the log logs like
{
"ts": "Timestamp(1415124334, 1)",
"op": "i",
"ns": "test.products",
"o": {
"_id": ObjectId("5459156e7950e8c18c094992"),
"item": "card",
"qty": 15
}
}
I would like to convert it into json or POJO so I can use Camel to route the message to appropriate handler.
The problem I am having is the document is not a json object.
So does anyone know how to do the following:
1) Convert the above into json (Timstamp is a BSON object)
2) Convert the above into a POJO
Thanks,
Gordon