{"id":13607314,"url":"https://github.com/ShivrajRath/jsonabc","last_synced_at":"2025-04-12T11:32:09.356Z","repository":{"id":55506637,"uuid":"59908722","full_name":"ShivrajRath/jsonabc","owner":"ShivrajRath","description":"Sorts JSON object alphabetically. It supports nested objects, arrays and collections. Works offline and beautifies JSON object too.","archived":false,"fork":false,"pushed_at":"2024-05-06T20:55:44.000Z","size":62,"stargazers_count":153,"open_issues_count":6,"forks_count":28,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-10T02:17:28.957Z","etag":null,"topics":["javascript","json","json-abc","sort","sorts-json","utility"],"latest_commit_sha":null,"homepage":"http://novicelab.org/jsonabc","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/ShivrajRath.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-28T18:22:20.000Z","updated_at":"2025-03-05T12:49:36.000Z","dependencies_parsed_at":"2024-06-18T14:18:42.726Z","dependency_job_id":null,"html_url":"https://github.com/ShivrajRath/jsonabc","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/ShivrajRath%2Fjsonabc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivrajRath%2Fjsonabc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivrajRath%2Fjsonabc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShivrajRath%2Fjsonabc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShivrajRath","download_url":"https://codeload.github.com/ShivrajRath/jsonabc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248560193,"owners_count":21124610,"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":["javascript","json","json-abc","sort","sorts-json","utility"],"created_at":"2024-08-01T19:01:17.589Z","updated_at":"2025-04-12T11:32:06.272Z","avatar_url":"https://github.com/ShivrajRath.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"[![Build Status][travis-icon]][travis]\n\n## JSON ABC\n\nSorts JSON object alphabetically. It supports nested objects, arrays and collections. Works offline and beautifies JSON object too.\n\n### Try it (Demo)\n\n[JSON ABC][]\n\n### Supports\n\n- Beautifies JSON\n- Sorts Plain Objects, Collections, Arrays\n- Has offline supports\n- IE9+ Support\n- Mobile/ Tablet friendly\n- Sorting plain arrays is optional\n\n### Download\n\n`npm install jsonabc`\n\n### Usage\n\n1.  Used directly in Node:\n    ```js\n    var myJsonAbc = require(\"jsonabc\");\n    var sorted = myJsonAbc.sortObj({ c: 0, b: 1, a: 0 });\n    ```\n2.  Built by Browserify, for directly inclusion in the browser:\n    ```html\n    \u003cscript src=\"dist/jsonabc.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n      var output = jsonabc.sort(inputStr, noarray);\n    \u003c/script\u003e\n    ```\n\n### Example\n\nIt converts this\n\n```json\n{\n  \"object\": {\n    \"b\": 2,\n    \"a\": 1,\n    \"d\": 4,\n    \"c\": 3\n  },\n  \"array\": [\"d\", \"1\", \"c\", \"a\", \"b\"],\n  \"collection\": [\n    {\n      \"b\": 2,\n      \"a\": 1,\n      \"d\": 4,\n      \"c\": 3\n    },\n    {\n      \"__b1\": 2,\n      \"__a2\": 1,\n      \"__d3\": 4,\n      \"__c4\": 3\n    },\n    [\"d\", \"1\", \"c\", \"a\", \"b\"]\n  ]\n}\n```\n\nto this\n\n```json\n{\n  \"array\": [\"1\", \"a\", \"b\", \"c\", \"d\"],\n  \"collection\": [\n    [\"1\", \"a\", \"b\", \"c\", \"d\"],\n    {\n      \"__a2\": 1,\n      \"__b1\": 2,\n      \"__c4\": 3,\n      \"__d3\": 4\n    },\n    {\n      \"a\": 1,\n      \"b\": 2,\n      \"c\": 3,\n      \"d\": 4\n    }\n  ],\n  \"object\": {\n    \"a\": 1,\n    \"b\": 2,\n    \"c\": 3,\n    \"d\": 4\n  }\n}\n```\n\n---\n\nLicense: [MIT][]\n\n[json abc]: https://novicelab.org/jsonabc \"JSON ABC online\"\n[travis-icon]: https://travis-ci.org/ShivrajRath/jsonabc.svg?branch=master\n[travis]: https://travis-ci.org/ShivrajRath/jsonabc \"Build status — Travis-CI\"\n[mit]: https://mit-license.org/2016?c=ShivrajRath\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShivrajRath%2Fjsonabc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShivrajRath%2Fjsonabc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShivrajRath%2Fjsonabc/lists"}