{"id":22013883,"url":"https://github.com/pmuellr/sloppy_json_parse","last_synced_at":"2026-05-15T13:35:00.260Z","repository":{"id":1002132,"uuid":"815618","full_name":"pmuellr/sloppy_json_parse","owner":"pmuellr","description":"a parser for a sloppier kind of JSON","archived":false,"fork":false,"pushed_at":"2010-08-03T22:02:36.000Z","size":96,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-31T12:37:59.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/pmuellr.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}},"created_at":"2010-08-03T21:43:39.000Z","updated_at":"2016-10-16T21:24:49.000Z","dependencies_parsed_at":"2022-08-16T11:45:26.182Z","dependency_job_id":null,"html_url":"https://github.com/pmuellr/sloppy_json_parse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pmuellr/sloppy_json_parse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmuellr%2Fsloppy_json_parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmuellr%2Fsloppy_json_parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmuellr%2Fsloppy_json_parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmuellr%2Fsloppy_json_parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmuellr","download_url":"https://codeload.github.com/pmuellr/sloppy_json_parse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmuellr%2Fsloppy_json_parse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33068646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-30T03:25:07.320Z","updated_at":"2026-05-15T13:35:00.244Z","avatar_url":"https://github.com/pmuellr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"`sloppy_json_parse` - a parser for a sloppier kind of JSON\n========================================================\n\nThe function `sloppy_json_parse()` is a fork of the `json_parse()` function \navailable at \n[http://www.json.org/json_parse.js](http://www.json.org/json_parse.js).  The\nAPI for the two functions is the same, besides the format of the text that\nthey parse.\n\n`sloppy_json_parse()` parses a language similar to JSON, but with these \ndifferences:\n\n* commas are optional\n\n* comments start with the '#' character and end with the end of the line\n\n* strings which match the regex `/[$_A-Z][$\\w]*/i` don't need to be quoted,\nexcept that the strings \"null\", \"true\", and \"false\" must always be quoted.\nThe regex is the syntax of JavaScript identifiers.\n\nRe-inspired by [CoffeeScript](http://jashkenas.github.com/coffee-script/#objects_and_arrays)\nafter [thinking about it](http://pmuellr.blogspot.com/2008/08/better-than-json.html) \n[for a short while](http://pmuellr.blogspot.com/2007/03/json-array-vulnerability.html).\n\nexamples\n--------\n\n----\n\n### sloppy JSON ###\n        [1 2 3 dogs cats]\n\n### equivalent JSON ###\n        [1, 2, 3, \"dogs\", \"cats\"]\n\n----\n\n### sloppy JSON ###\n        {x:y z:a}\n\n### equivalent JSON ###\n        {\"x\":\"y\", \"z\":\"a\"}\n\n----\n\n### sloppy JSON ###\n        {\n            # some properties of the object\n            a: z                             # z is a string!\n            b: y                             # so is y\n            c: [1 2 3]\n            d: [                             # d is an array\n                {\n                    abc: true\n                    def: false\n                }                            # end of this inner object\n                \n                {\n                    xyz: null\n                    uvw: [101 202 303]       # weird numbers\n                }\n                \n                [4 5 6]                      # last element\n            ]\n            # end of the properties\n        }\n\n### equivalent JSON ###\n        {\n            \"a\": \"z\",\n            \"b\": \"y\",\n            \"c\": [1, 2, 3],\n            \"d\": [\n                {\n                    \"abc\": true,\n                    \"def\": false\n                },\n                \n                {\n                    \"xyz\": null,\n                    \"uvw\": [101, 202, 303]\n                },\n                \n                [4, 5, 6]\n            ]\n        }\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmuellr%2Fsloppy_json_parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmuellr%2Fsloppy_json_parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmuellr%2Fsloppy_json_parse/lists"}