{"id":15697310,"url":"https://github.com/mevdschee/json_sort.php","last_synced_at":"2025-05-08T23:48:41.388Z","repository":{"id":151764628,"uuid":"217906556","full_name":"mevdschee/json_sort.php","owner":"mevdschee","description":"Sort a json string so that you can compare it using string comparison","archived":false,"fork":false,"pushed_at":"2019-10-28T07:44:34.000Z","size":6,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-08T23:48:37.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/mevdschee.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":"2019-10-27T19:38:39.000Z","updated_at":"2022-03-05T16:02:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"b71382a8-7726-4de2-a24e-caadd561efc4","html_url":"https://github.com/mevdschee/json_sort.php","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/mevdschee%2Fjson_sort.php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mevdschee%2Fjson_sort.php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mevdschee%2Fjson_sort.php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mevdschee%2Fjson_sort.php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mevdschee","download_url":"https://codeload.github.com/mevdschee/json_sort.php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253166477,"owners_count":21864467,"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-03T19:16:09.125Z","updated_at":"2025-05-08T23:48:41.367Z","avatar_url":"https://github.com/mevdschee.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json_sort.php\n\nHave you ever tried to write unit tests for JSON output? Did you run into the \"unordered\" nature of JSON \nin accordance with [RFC 7159](https://tools.ietf.org/html/rfc7159)? If so, this repo is for you!\n\nIt provides a single method that parses the JSON and reproduces it sorted in Lexicographical order.\nIt has no dependencies (other than json support in PHP) and is a single method. No path matching or PHPUnit required.\n\n[Show me the code!](json_sort.php)\n\nNB: If you do use PHPUnit, then take a look at the \"`assertJsonStringEqualsJsonString`\" function [here](https://phpunit.readthedocs.io/en/latest/assertions.html#assertjsonstringequalsjsonstring).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmevdschee%2Fjson_sort.php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmevdschee%2Fjson_sort.php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmevdschee%2Fjson_sort.php/lists"}