in aidial_assistant/json_stream/json_number.py [0:0]
def _parse_number(string: str, char_position: int) -> float | int:
try:
return json.loads(string)
except json.JSONDecodeError:
raise invalid_sequence_error(TYPE_STRING, string, char_position)