JSON serialization for persisting entities using core Mongo Java driver.