{"id":16703249,"url":"https://github.com/matehat/jaysoned","last_synced_at":"2025-03-14T08:11:46.515Z","repository":{"id":10684829,"uuid":"12924407","full_name":"matehat/jaysoned","owner":"matehat","description":"Quick 'n Dirty JSON Concatenation/Compression utility","archived":false,"fork":false,"pushed_at":"2013-09-18T19:22:52.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T02:41:40.642Z","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/matehat.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":"2013-09-18T13:52:55.000Z","updated_at":"2013-09-28T11:01:01.000Z","dependencies_parsed_at":"2022-09-24T06:21:02.613Z","dependency_job_id":null,"html_url":"https://github.com/matehat/jaysoned","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matehat%2Fjaysoned","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matehat%2Fjaysoned/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matehat%2Fjaysoned/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matehat%2Fjaysoned/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matehat","download_url":"https://codeload.github.com/matehat/jaysoned/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243544649,"owners_count":20308169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-12T19:07:35.554Z","updated_at":"2025-03-14T08:11:46.490Z","avatar_url":"https://github.com/matehat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"jaysoned\n========\n\nQuick 'n Dirty JSON Concatenation/Compression utility\n\nI needed a way to take a bunch of JSON files needed by an iOS app, put them together (and preferably compress them) to \ncoalesce disk seeks into a single efficient one. I added Build Phase that calls this script like this :\n\n    /usr/local/bin/node /usr/local/share/npm/bin/jaysoned ${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ ${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/json.snz\n    rm ${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/*.json\n\n1. Which basically looks for all `.json` files in the unlocalized resource location of the app's product directory, hands them\nto `jaysoned` and removes them when done. \n2. `jaysoned` parses them and makes one, larger JSON file with keys being the original\nfiles' names, and values being the files' contents as javascript objects. \n3. Then, it takes the resulting large js object, stringifies it, compresses it using [Snappy][1], Google's fast compression \nlibrary and writes the result to `json.snz`, jaysoned's second argument.\n\nThe app, as soon as one of these JSON objects is needed, reads the file, uncompresses it using [Snappy-ObjC][2] and caches \nthe resulting JSON object for later use.\n\n[1]: https://code.google.com/p/snappy/\n[2]: https://github.com/matehat/Snappy-ObjC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatehat%2Fjaysoned","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatehat%2Fjaysoned","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatehat%2Fjaysoned/lists"}