AITMONDO

a2ui-agent-sdk 0.12.1 rejects out-of-range JSON numbers

Small yellow parts are lined up on a conveyor belt. A large orange part has stopped in front of a measuring gate.
Illustration showing how numbers beyond the double-precision range are detected during parsing. AITMONDO (AI-generated).

a2ui-project released version 0.12.1 of its a2ui-agent-sdk on 23 November. DirectJsonParser now reports an A2uiParseError when it encounters a JSON number outside the range of a double-precision floating-point value. This matches the behaviour of the Dart SDK.

Version 0.12.1 reports A2uiParseError when parsing JSON numbers beyond the double-precision range. It matches the Dart SDK’s behaviour and prevents conversion into infinity.
AITMONDO graphic based on primary sources.

Out-of-range values detected during parsing

Before the update, the parser read numbers beyond the double-precision range as infinity. Writing those values out produced Infinity, a token outside the JSON number grammar. In version 0.12.1, the parser reports an error as soon as it reads such a number.

Version 0.12.1 published on PyPI

a2ui-project published 0.12.1 on the Python package distribution site PyPI. The release notes say that the update brings number handling in line with the Dart version.

Primary sources