Try catch on JSON