MongoDB interview question

Parse log message and return as JSON