fixes issue with differnet json gems causing errors not to be handled