Add try catch around this to make sure garbage json data is taken care of.