{"id":16584753,"url":"https://github.com/bryanberger/python-json-size","last_synced_at":"2026-05-18T03:06:15.301Z","repository":{"id":148996982,"uuid":"244418427","full_name":"bryanberger/python-json-size","owner":"bryanberger","description":"Really simple way to get a sense for how large an array of json objects might be","archived":false,"fork":false,"pushed_at":"2020-03-02T17:07:35.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T00:34:53.661Z","etag":null,"topics":["json","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bryanberger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-03-02T16:25:16.000Z","updated_at":"2020-03-02T16:35:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"47b72b3b-316a-440a-9acc-0e507b7e94bc","html_url":"https://github.com/bryanberger/python-json-size","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bryanberger/python-json-size","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanberger%2Fpython-json-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanberger%2Fpython-json-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanberger%2Fpython-json-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanberger%2Fpython-json-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bryanberger","download_url":"https://codeload.github.com/bryanberger/python-json-size/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanberger%2Fpython-json-size/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","python"],"created_at":"2024-10-11T22:45:40.536Z","updated_at":"2026-05-18T03:06:15.289Z","avatar_url":"https://github.com/bryanberger.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple json object array byte size estimator\n\n## Why?\nI wanted to estimate the size of the JSON output of an array full of the same object.\n\n## How To\n- open `json_size.py`\n- edit the `numItems` to account for how many items to estimate.\n- edit the object to duplicate.\n\n## Run\n```\n$ python json_size.py\n```\n\n## Output\nThis script outputs the mock json, minified json, and gzipped json into a local `output` folder:\n\n```\nNumber of Items 1000\n\nEstimated Size: 108KB\nActual Size: 108KB\nEstimated Minified Size: 80KB\nActual Minified Size: 80KB\nEstimated Gzip Size: 48KB\nActual Gzip Size: 2KB\n```\n\n#### Credits\nBased on the SO answer here: https://stackoverflow.com/a/39047897","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanberger%2Fpython-json-size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbryanberger%2Fpython-json-size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanberger%2Fpython-json-size/lists"}