Wrap json parse with try/catch