Catch and properly handle the ValueError that might result from parsing
json.