Make the JSON parser less fragile