try to catch json decode failures