catch json decode error