Repair ability to interpret a JSON string as an integer if it works