Repository navigation
fix #41: Large numbers serialized incorrectly - #42
Open
aleksanderd wants to merge 1 commit into
Open
aleksanderd wants to merge 1 commit into
aleksanderd wants to merge 1 commit into
Conversation
|
Proper fix should be just using |
|
Okay no, to support newer Lua versions and 64-bit integers, |
dtfiedler
added a commit
to dtfiedler/json.lua
that referenced
this pull request
Nov 5, 2024
… decmials, return string value of integers As mentioned in rxi#42 (comment) - Lua 5.3+ supports 64 bit integers. This change modifies the string encoding of numbers to align with those changes.
megvadulthangya
added a commit
to megvadulthangya/json.lua
that referenced
this pull request
Oct 27, 2026
- Add Lua 5.5 compatibility (use table.unpack, math.tointeger) - Rewrite encoder/decoder to use a rope for O(n) performance (rxi#46) - Encode numbers with %.17g for lossless 64-bit float round-trip (rxi#42) - Handle nil values in arrays by emitting null (rxi#52) - Sort object keys for deterministic output (rxi#51) - Support numeric table keys (rxi#43) - Encode empty tables as [] by default, with force_object option (rxi#40) - Add SPARSELIMIT for sparse array handling (rxi#28) - Make number parsing locale-independent (rxi#20) - Bump version to 0.2.0 - Update PKGBUILD for Lua 5.5 and new version - Update README with supported versions and new options - Add tests for nil arrays, sorted keys, empty tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.