René's URL Explorer Experiment


Title: Improved table encoding code to handle sparse arrays. by aryajur · Pull Request #28 · rxi/json.lua · GitHub

Open Graph Title: Improved table encoding code to handle sparse arrays. by aryajur · Pull Request #28 · rxi/json.lua

X Title: Improved table encoding code to handle sparse arrays. by aryajur · Pull Request #28 · rxi/json.lua

Description: A lightweight JSON library for Lua. Contribute to rxi/json.lua development by creating an account on GitHub.

Open Graph Description: By going through the table before to get the maximum index we can handle sparse arrays. Also tostring seems to work better by maintaining float and integer number conversion.

X Description: By going through the table before to get the maximum index we can handle sparse arrays. Also tostring seems to work better by maintaining float and integer number conversion.

Opengraph URL: https://github.com/rxi/json.lua/pull/28

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:427f3a36-a270-31ff-90de-86d36bf7ebc9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD3EE:B4606:1C5DDBE:276B442:6B05A10B
html-safe-nonce4df8b4edf777faa7df4d0464c112f40f5b5b2f99cdb79135856a4cc9ffdf8703
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0VFOkI0NjA2OjFDNUREQkU6Mjc2QjQ0Mjo2QjA1QTEwQiIsInZpc2l0b3JfaWQiOiI3NjMyMTk0NzEyNTY0NTA2ODkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac38a3e524ad7de9287daea720696057fbcf877a169e711d248ed0f195705b8a19
hovercard-subject-tagpull_request:452818828
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/rxi/json.lua/28/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cb0228bf23e69bc8100d139796e130386d23ebd2d7d4cc16ce7594a9fbb6b653/rxi/json.lua/pull/28
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cb0228bf23e69bc8100d139796e130386d23ebd2d7d4cc16ce7594a9fbb6b653/rxi/json.lua/pull/28
og:image:altBy going through the table before to get the maximum index we can handle sparse arrays. Also tostring seems to work better by maintaining float and integer number conversion.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamearyajur
hostnamegithub.com
expected-hostnamegithub.com
None1fb3ddc0b71892c329818732762bc26c09d4e193a34ef934888d4731e69c0173
turbo-cache-controlno-cache
go-importgithub.com/rxi/json.lua git https://github.com/rxi/json.lua.git
octolytics-dimension-user_id3920290
octolytics-dimension-user_loginrxi
octolytics-dimension-repository_id40619562
octolytics-dimension-repository_nworxi/json.lua
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40619562
octolytics-dimension-repository_network_root_nworxi/json.lua
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release001eaa59a2e6bac6dc88d27c00f0240847562453
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/rxi/json.lua/pull/28#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frxi%2Fjson.lua%2Fpull%2F28
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frxi%2Fjson.lua%2Fpull%2F28
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=rxi%2Fjson.lua
Reloadhttps://github.com/rxi/json.lua/pull/28
Reloadhttps://github.com/rxi/json.lua/pull/28
Reloadhttps://github.com/rxi/json.lua/pull/28
rxihttps://github.com/rxi
json.luahttps://github.com/rxi/json.lua
Codehttps://github.com/rxi/json.lua
Issues15 (15)https://github.com/rxi/json.lua/issues
Pull requests13 (13)https://github.com/rxi/json.lua/pulls
Actionshttps://github.com/rxi/json.lua/actions
Projectshttps://github.com/rxi/json.lua/projects
Wikihttps://github.com/rxi/json.lua/wiki
Security and qualityhttps://github.com/rxi/json.lua/security
Insightshttps://github.com/rxi/json.lua/pulse
https://github.com/rxi/json.lua
aryajurhttps://github.com/aryajur
rxi:masterhttps://github.com/rxi/json.lua/tree/master
aryajur:masterhttps://github.com/aryajur/json.lua/tree/master
Conversationhttps://github.com/rxi/json.lua/pull/28
Commits6 (6)https://github.com/rxi/json.lua/pull/28/commits
Checkshttps://github.com/rxi/json.lua/pull/28/checks
Files changedhttps://github.com/rxi/json.lua/pull/28/files
Improved table encoding code to handle sparse arrays. https://github.com/rxi/json.lua/pull/28#top
aryajurhttps://github.com/aryajur
rxi:masterhttps://github.com/rxi/json.lua/tree/master
aryajur:masterhttps://github.com/aryajur/json.lua/tree/master
https://github.com/aryajur
aryajurhttps://github.com/aryajur
Jul 19, 2020https://github.com/rxi/json.lua/pull/28#issue-661117459
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
https://github.com/aryajur
Improved table encoding code to handle sparse arrays. Floating point …https://github.com/rxi/json.lua/pull/28/commits/ad6ac0fd8e5b8ceaea17fab2868d0620099e882b
https://github.com/rxi/json.lua/commit/ad6ac0fd8e5b8ceaea17fab2868d0620099e882b#comments
ad6ac0fhttps://github.com/rxi/json.lua/pull/28/commits/ad6ac0fd8e5b8ceaea17fab2868d0620099e882b
https://github.com/Mysak0CZ
Mysak0CZhttps://github.com/Mysak0CZ
Aug 18, 2020https://github.com/rxi/json.lua/pull/28#issuecomment-675351965
https://www.lua.org/manual/5.2/manual.html#pdf-table.packhttps://www.lua.org/manual/5.2/manual.html#pdf-table.pack
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
https://github.com/aryajur
Updated code to allow array specifications using table.pack function.…https://github.com/rxi/json.lua/pull/28/commits/32a59c89b0986796bc1baa15b44168e10c66f691
32a59c8https://github.com/rxi/json.lua/pull/28/commits/32a59c89b0986796bc1baa15b44168e10c66f691
https://github.com/aryajur
aryajurhttps://github.com/aryajur
Aug 19, 2020https://github.com/rxi/json.lua/pull/28#issuecomment-675848258
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
https://github.com/aryajur
nLen initialization fixedhttps://github.com/rxi/json.lua/pull/28/commits/f521e4ac03c231be2b526c237c0325959a73ac66
f521e4ahttps://github.com/rxi/json.lua/pull/28/commits/f521e4ac03c231be2b526c237c0325959a73ac66
https://github.com/appgurueu
appgurueuhttps://github.com/appgurueu
Dec 17, 2022 https://github.com/rxi/json.lua/pull/28#pullrequestreview-1221823446
View reviewed changes https://github.com/rxi/json.lua/pull/28/files/f521e4ac03c231be2b526c237c0325959a73ac66
json.luahttps://github.com/rxi/json.lua/pull/28/files/f521e4ac03c231be2b526c237c0325959a73ac66#diff-8706bf89dc2073f816488b4a351ec06cbecd17fce9bce48d7e1218b1cdc1ea09
appgurueuhttps://github.com/appgurueu
Dec 17, 2022https://github.com/rxi/json.lua/pull/28#discussion_r1051423833
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
aryajurhttps://github.com/aryajur
Nov 25, 2023https://github.com/rxi/json.lua/pull/28#discussion_r1404745867
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
appgurueuhttps://github.com/appgurueu
Nov 25, 2023https://github.com/rxi/json.lua/pull/28#discussion_r1404864025
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
string.formathttps://www.lua.org/manual/5.1/manual.html#pdf-string.format
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
aryajurhttps://github.com/aryajur
Nov 28, 2023https://github.com/rxi/json.lua/pull/28#discussion_r1407070119
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
json.luahttps://github.com/rxi/json.lua/pull/28/files/f521e4ac03c231be2b526c237c0325959a73ac66#diff-8706bf89dc2073f816488b4a351ec06cbecd17fce9bce48d7e1218b1cdc1ea09
appgurueuhttps://github.com/appgurueu
Dec 17, 2022https://github.com/rxi/json.lua/pull/28#discussion_r1051423862
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
aryajurhttps://github.com/aryajur
Nov 25, 2023https://github.com/rxi/json.lua/pull/28#discussion_r1404745514
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
json.luahttps://github.com/rxi/json.lua/pull/28/files/f521e4ac03c231be2b526c237c0325959a73ac66#diff-8706bf89dc2073f816488b4a351ec06cbecd17fce9bce48d7e1218b1cdc1ea09
appgurueuhttps://github.com/appgurueu
Dec 17, 2022https://github.com/rxi/json.lua/pull/28#discussion_r1051423868
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
aryajurhttps://github.com/aryajur
Nov 25, 2023https://github.com/rxi/json.lua/pull/28#discussion_r1404745732
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
appgurueuhttps://github.com/appgurueu
Nov 25, 2023https://github.com/rxi/json.lua/pull/28#discussion_r1404865709
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
aryajurhttps://github.com/aryajur
Nov 28, 2023https://github.com/rxi/json.lua/pull/28#discussion_r1407070199
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
json.luahttps://github.com/rxi/json.lua/pull/28/files/f521e4ac03c231be2b526c237c0325959a73ac66#diff-8706bf89dc2073f816488b4a351ec06cbecd17fce9bce48d7e1218b1cdc1ea09
appgurueuhttps://github.com/appgurueu
Dec 17, 2022https://github.com/rxi/json.lua/pull/28#discussion_r1051423991
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
aryajurhttps://github.com/aryajur
Nov 25, 2023https://github.com/rxi/json.lua/pull/28#discussion_r1404745143
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
appgurueuhttps://github.com/appgurueu
Nov 25, 2023https://github.com/rxi/json.lua/pull/28#discussion_r1404864739
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
aryajurhttps://github.com/aryajur
Nov 28, 2023https://github.com/rxi/json.lua/pull/28#discussion_r1407070309
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
https://github.com/aryajur
Added check to prevent sparse arrays > 100 getting throughhttps://github.com/rxi/json.lua/pull/28/commits/75127d2c7d7c1321171da47f1b58f7bab70dbd6f
75127d2https://github.com/rxi/json.lua/pull/28/commits/75127d2c7d7c1321171da47f1b58f7bab70dbd6f
https://github.com/ninjamonkey198206
ninjamonkey198206https://github.com/ninjamonkey198206
Nov 25, 2023https://github.com/rxi/json.lua/pull/28#issuecomment-1826229740
@appgurueuhttps://github.com/appgurueu
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
https://github.com/appgurueu
appgurueuhttps://github.com/appgurueu
Nov 25, 2023 https://github.com/rxi/json.lua/pull/28#pullrequestreview-1748823884
View reviewed changes https://github.com/rxi/json.lua/pull/28/files/75127d2c7d7c1321171da47f1b58f7bab70dbd6f
json.luahttps://github.com/rxi/json.lua/pull/28/files/75127d2c7d7c1321171da47f1b58f7bab70dbd6f#diff-8706bf89dc2073f816488b4a351ec06cbecd17fce9bce48d7e1218b1cdc1ea09
appgurueuhttps://github.com/appgurueu
Nov 25, 2023https://github.com/rxi/json.lua/pull/28#discussion_r1404865013
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
aryajurhttps://github.com/aryajur
Nov 28, 2023https://github.com/rxi/json.lua/pull/28#discussion_r1407070351
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
https://github.com/appgurueu
appgurueuhttps://github.com/appgurueu
Nov 25, 2023https://github.com/rxi/json.lua/pull/28#issuecomment-1826297125
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
@appgurueuhttps://github.com/appgurueu
@aryajurhttps://github.com/aryajur
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
https://github.com/aryajur
aryajurhttps://github.com/aryajur
Nov 28, 2023https://github.com/rxi/json.lua/pull/28#issuecomment-1829058252
@appgurueuhttps://github.com/appgurueu
@aryajurhttps://github.com/aryajur
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
aryajurhttps://github.com/aryajur
November 27, 2023 20:38https://github.com/rxi/json.lua/pull/28#commits-pushed-0e6634a
https://github.com/aryajur
Improved indentation by using tab. Added module variable SPARSELIMIT …https://github.com/rxi/json.lua/pull/28/commits/0e6634a54ed3d1124382a7f81ef9c716860c76a3
0e6634ahttps://github.com/rxi/json.lua/pull/28/commits/0e6634a54ed3d1124382a7f81ef9c716860c76a3
@appgurueuhttps://github.com/appgurueu
https://github.com/aryajur
Fixed bug for array encodinghttps://github.com/rxi/json.lua/pull/28/commits/8ce4842cf9b1a15fb5133fa23600bf587983d3fe
8ce4842https://github.com/rxi/json.lua/pull/28/commits/8ce4842cf9b1a15fb5133fa23600bf587983d3fe
megvadulthangyahttps://github.com/megvadulthangya
Oct 27, 2026 https://github.com/rxi/json.lua/pull/28#ref-commit-4cf55a2
https://github.com/megvadulthangya
feat: modernize json.lua for Lua 5.5https://github.com/megvadulthangya/json.lua/commit/4cf55a27f31cba3e5bd50fbec39b4a275fd3d505
4cf55a2https://github.com/megvadulthangya/json.lua/commit/4cf55a27f31cba3e5bd50fbec39b4a275fd3d505
rxi#46https://github.com/rxi/json.lua/pull/46
rxi#42https://github.com/rxi/json.lua/pull/42
rxi#52https://github.com/rxi/json.lua/pull/52
rxi#51https://github.com/rxi/json.lua/pull/51
rxi#43https://github.com/rxi/json.lua/pull/43
rxi#40https://github.com/rxi/json.lua/pull/40
rxi#28https://github.com/rxi/json.lua/pull/28
rxi#20https://github.com/rxi/json.lua/pull/20
https://github.co/hiddenchars
https://github.com/rxi/json.lua/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frxi%2Fjson.lua%2Fpull%2F28
https://github.com/appgurueu
appgurueu https://github.com/appgurueu
https://github.com/rxi/json.lua/pull/28/files/f521e4ac03c231be2b526c237c0325959a73ac66
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
Please reload this pagehttps://github.com/rxi/json.lua/pull/28
https://github.com/aryajur
https://github.com/Mysak0CZ
https://github.com/ninjamonkey198206
https://github.com/appgurueu
https://github.com/alexandro-rezakhani
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.