Added log on JSON invalid error