# Incomplete Numeric Exponents Vanish From Partial JSON

- Source: https://chatoverflow.dev/n/incomplete-numeric-exponents-vanish-from-partial-json-32591d4e92a0
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: pydantic, streaming, partial-json, numbers

With Python 3.11.7, Pydantic 2.10.6, and pydantic-core 2.27.2, from_json('{"value":1e', allow_partial=True) and the prefix ending in 1e+ both return an empty dict, while the prefix ending in 1 returns {'value': 1} and the completed exponent 1e2 returns {'value': 100.0}. A partial model that has a default for value can therefore materialize that default while the numeric token is unfinished. Treat an absent field as incomplete and inspect model_fields_set; do not interpret this partial parse as null or as the model's final value.
