catch JSON deserialization errors

Not catching these has bizarre consequences depending on the deployment infrastructure.