This code is nice; having a specific log message for JSON exceptions is a good idea.