{"id":24367171,"url":"https://github.com/vajahath/is-good-json","last_synced_at":"2026-04-08T20:51:46.067Z","repository":{"id":57277249,"uuid":"77376197","full_name":"vajahath/is-good-json","owner":"vajahath","description":"An npm package to check if the JSON is valid.","archived":false,"fork":false,"pushed_at":"2019-07-19T02:48:16.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-06T01:19:05.645Z","etag":null,"topics":["json","json-parser","json-validation","nodejs","npm-package"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/is-good-json","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/vajahath.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":"2016-12-26T10:20:37.000Z","updated_at":"2017-06-08T08:04:13.000Z","dependencies_parsed_at":"2022-09-17T12:52:49.416Z","dependency_job_id":null,"html_url":"https://github.com/vajahath/is-good-json","commit_stats":null,"previous_names":["vajahath/isvalidjson"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vajahath/is-good-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vajahath%2Fis-good-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vajahath%2Fis-good-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vajahath%2Fis-good-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vajahath%2Fis-good-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vajahath","download_url":"https://codeload.github.com/vajahath/is-good-json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vajahath%2Fis-good-json/sbom","scorecard":{"id":914808,"data":{"date":"2025-08-11","repo":{"name":"github.com/vajahath/is-good-json","commit":"a5fd48ec183b55600ade166e41e26e77217ea542"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 1/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"36 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-hr2v-3952-633q","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-4hpf-3wq7-5rpr","Warn: Project is vulnerable to: GHSA-f522-ffg8-j8r6","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T20:35:08.432Z","repository_id":57277249,"created_at":"2025-08-24T20:35:08.432Z","updated_at":"2025-08-24T20:35:08.432Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31573788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"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":["json","json-parser","json-validation","nodejs","npm-package"],"created_at":"2025-01-19T01:42:07.019Z","updated_at":"2026-04-08T20:51:46.033Z","avatar_url":"https://github.com/vajahath.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-good-json\n\nSimple package to validate JSON files.\n\n[![npm](https://img.shields.io/npm/v/is-good-json.svg)](https://www.npmjs.com/package/is-good-json)\n[![Build Status](https://travis-ci.org/vajahath/is-good-json.svg?branch=master)](https://travis-ci.org/vajahath/is-good-json)\n[![Known Vulnerabilities](https://snyk.io/test/npm/is-good-json/badge.svg)](https://snyk.io/test/npm/is-good-json)\n[![npm](https://img.shields.io/npm/dt/is-good-json.svg)](https://www.npmjs.com/package/is-good-json)\n[![Greenkeeper badge](https://badges.greenkeeper.io/vajahath/is-good-json.svg)](https://greenkeeper.io/)\n\n![](https://raw.githubusercontent.com/vajahath/is-good-json/master/media/logo.png)\n\n#### Usage\n\n```javascript\nisGoodJSON('{\"kity\": \"Fluffy\"}'); // returns parsed object\nisGoodJSON('{\"kity\" \"Fluffy\"}'); // returns false\n```\n\n## Install / Update\n\n```shell\nnpm install --save is-good-json\n```\n\n## Usage\n\n### Syntax\n\n`isGoodJSON(\u003cargument\u003e);`\n\n### Example\n\n```javascript\n// load package\nconst isGoodJSON = require('is-good-json');\n\n// use it\nisGoodJSON('{\"this\": \"is\",\"a\": \"good json\"}'); // -\u003e returns parsed object: {\"this\": \"is\",\"a\": \"good json\"}\nisGoodJSON({ this: 'is', a: 'good json' }); // -\u003e returns same object\n\nisGoodJSON('{ha: \"hi\" meuo: \"ho\"}'); // -\u003e returns false\nisGoodJSON('[{\"ths\":asdf}{\"adasd\":asdf}]'); // -\u003e returns false\n\n// empty arrays and objects\nisGoodJSON('[]'); // -\u003e returns false\nisGoodJSON('{}'); // -\u003e returns false\nisGoodJSON([]); // -\u003e returns false\nisGoodJSON({}); // -\u003e returns false\n```\n\n### Usage\n\n**Syntax :** `b = isGoodJSON(a);`\n\nwhere `a` and `b` are as follows,\n\n| value of `a`              | value of `b`       |\n| ------------------------- | ------------------ |\n| `null`                    | `false`            |\n| `true` or `false`         | `false`            |\n| any number                | `false`            |\n| valid json as `string`    | parsed json object |\n| valid json as `object`    | same json object   |\n| invalid json as `string`  | `false`            |\n| invalid json as `object`  | `false`            |\n| valid, but empty json     | `false`            |\n| valid non-empty `object`  | same object        |\n| valid non-empty `array`   | same array         |\n| valid, but empty `object` | `false`            |\n| valid, but empty `array`  | `false`            |\n\n\u003cbr\u003e\n\n### one more example\n\n```javascript\nisGoodJSON('{\"name\": \"Kitty\", \"friends\":[\"tom\", \"jerry\"]}');\n/* returns the following parsed object:\n    {\n        name: \"kitty\",\n        friends: [\"tom\", \"jerry\"]\n    }\n */\n```\n\nIf you wish to file any feature/bugs, mention it on [issues](https://github.com/vajahath/is-good-json/issues).\n\n\u003cbr\u003e\n\nEnjoy.\n\n## Change log\n\n* v1.0.5, v1.0.6\n    * linting stuffs\n    * docs\n    * greenkeeper issues\n* v1.0.4\n    * Perf improvements with [#1](https://github.com/vajahath/is-good-json/pull/1), (thanks [@demacdonald](https://github.com/demacdonald))\n    * adds Greenkeeper, tavis ci.\n* v1.0.3\n    * Documentation updates.\n* v1.0.2\n    * Dependency adjustments.\n* v1.0.1\n    * Github integration done right.\n* v1.0.0\n    * Initial release\n\n\u003cbr\u003e\n\n## License\n\nMIT \u0026copy; [Vajahath Ahmed](https://mycolorpad.blogspot.in)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvajahath%2Fis-good-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvajahath%2Fis-good-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvajahath%2Fis-good-json/lists"}