You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Preserve integer precision and object key order in fromjson #19
I’m putting together a PR that retains numeric tokens as json.Number until their type is determined and builds ordered dictionaries from the input. The same handling applies to nested objects and arrays.
The decoder will also check for trailing data after the first complete JSON value and return parsing errors with context.
I’ll link the PR here with regression tests for integer precision and key order. For the Python reference, fromjson is registered using json.loads, since it isn’t a built-in Jinja2 filter. Integer preservation remains limited to the Go engine’s supported range.
Resolved in #34 and published in v1.11.0, with corresponding regression tests covering the reported problem. Thank you, @qoke, for the report and suggested solution.
Activity
ardan-bkennedy commentedon Oct 26, 2026
Resolved in #34 and published in v1.11.0, with corresponding regression tests covering the reported problem. Thank you, @qoke, for the report and suggested solution.