use logging, catch JSON parsing errors