move try/catch block inside of callback to correctly catch json parse error