Added more info on JSON invalid error