Changed exception handling in case of failed JSON decoding