Added error message when json parse failed