{"id":34596156,"url":"https://github.com/the-eater/json-compressor","last_synced_at":"2026-05-27T06:01:43.448Z","repository":{"id":14756550,"uuid":"17477814","full_name":"the-eater/JSON-Compressor","owner":"the-eater","description":"Sometimes we need to sqeeuze more JSON together","archived":false,"fork":false,"pushed_at":"2014-03-06T15:15:06.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-18T22:29:56.746Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/the-eater.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-06T13:03:16.000Z","updated_at":"2014-05-15T04:48:39.000Z","dependencies_parsed_at":"2022-09-03T14:11:20.242Z","dependency_job_id":null,"html_url":"https://github.com/the-eater/JSON-Compressor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/the-eater/JSON-Compressor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-eater%2FJSON-Compressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-eater%2FJSON-Compressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-eater%2FJSON-Compressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-eater%2FJSON-Compressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/the-eater","download_url":"https://codeload.github.com/the-eater/JSON-Compressor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-eater%2FJSON-Compressor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33553127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":[],"created_at":"2025-12-24T11:43:38.886Z","updated_at":"2026-05-27T06:01:42.206Z","avatar_url":"https://github.com/the-eater.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Compressor\n\n\nSometimes we need to sqeeuze more JSON together.\n\nBut we need to keep it JSON compatible so we come up with nifty solutions.\n\nJSON Compressor is one of them. it is a smart compressor, it only transforms object arrays with 3 of more items into a compressed array. \n\nJSON Compressor has 3 modes passive (default), aggresive and recursive\n\n# NodeJS\n\nfor NodeJS use\n\n`npm i https://github.com/EaterOfCode/JSON-Compressor/archive/master.tar.gz`\n\nand \n\n`var JSONCompressor = require('json-compressor');`\n\nI dont want to pollute NPM with this *rubbish*\n\n## Passive\n\nPassive will transform your beautiful objects into a table like object with one array columns and an array with alot of arrays with the values\n\n## Aggresive\n\nAggresive will throw everything just in one big array.\n\n## Recursive\n\nis aggresive but will also compress a level deeper.\n\n# API\n\n`JSONCompressor`\n*\t`parse (str, mode) returns object`\n*\t`stringify (obj, mode, spacing) returns string` \n\n# Warning!\n\nJSON Compressor is a lossy compressor! nulls will be assigned or ignored.\nAll code is written a year ago and is messy.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-eater%2Fjson-compressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe-eater%2Fjson-compressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-eater%2Fjson-compressor/lists"}