Support deserialization of most state (curl input is not really good yet).