json parse try/catch block