{"_id":"types-json","_rev":"139734","name":"types-json","description":"Type checking for JSON objects","dist-tags":{"latest":"1.2.2"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"time":{"modified":"2021-06-03T11:26:10.000Z","created":"2020-09-07T18:30:39.015Z","1.2.2":"2020-10-04T04:20:13.200Z","1.2.1":"2020-09-19T21:49:15.753Z","1.2.0":"2020-09-10T02:55:25.576Z","1.1.0":"2020-09-10T02:49:31.219Z","1.0.8":"2020-09-08T03:47:46.590Z","1.0.7":"2020-09-07T19:38:54.358Z","1.0.6":"2020-09-07T18:30:39.015Z"},"users":{},"author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/types-json.git"},"versions":{"1.2.2":{"name":"types-json","version":"1.2.2","description":"Type checking for JSON objects","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/types-json","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/types-json.git"},"keywords":["json","object","value","array","typescript","types","type","checking","guard","guards"],"main":"./build/index.js","scripts":{"build":"bob build","commit":"bob commit","lint":"bob lint","release":"bob publish","test":"bob test"},"devDependencies":{"@bconnorwhite/bob":"^2.9.2"},"eslintConfig":{"extends":"eslint-config-bob"},"husky":{"hooks":{"commit-msg":"bob lint commit"}},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"types-json@1.2.2","dist":{"shasum":"91ebe6de59e741ab38a98b071708a29494cedfe6","size":1977,"noattachment":false,"key":"/types-json/-/types-json-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/types-json/download/types-json-1.2.2.tgz"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types-json_1.2.2_1601785213082_0.6460471592792836"},"_hasShrinkwrap":false,"publish_time":1601785213200,"_cnpm_publish_time":1601785213200},"1.2.1":{"name":"types-json","version":"1.2.1","description":"Type checking for JSON objects","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/types-json","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/types-json.git"},"keywords":["json","object","value","array","typescript","types","type","checking","guard","guards"],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn build","test":"jest"},"devDependencies":{"@bconnorwhite/bob":"^2.1.0","jest":"^26.4.2"},"_id":"types-json@1.2.1","dist":{"shasum":"bd0667623516ba4a24cc998951531af45187a7d0","size":1657,"noattachment":false,"key":"/types-json/-/types-json-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/types-json/download/types-json-1.2.1.tgz"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types-json_1.2.1_1600552155643_0.34348117429528413"},"_hasShrinkwrap":false,"publish_time":1600552155753,"_cnpm_publish_time":1600552155753},"1.2.0":{"name":"types-json","version":"1.2.0","description":"Type checking for JSON objects","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/types-json","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/types-json.git"},"keywords":["json","object","value","array","typescript","types","type","checking","guard","guards"],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn build","test":"jest"},"devDependencies":{"@bconnorwhite/bob":"^2.1.0","jest":"^26.4.2"},"_id":"types-json@1.2.0","dist":{"shasum":"78323a7afa1d9e045999e36d57966d107931dfc4","size":1645,"noattachment":false,"key":"/types-json/-/types-json-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/types-json/download/types-json-1.2.0.tgz"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types-json_1.2.0_1599706525416_0.9417058277367918"},"_hasShrinkwrap":false,"publish_time":1599706525576,"_cnpm_publish_time":1599706525576},"1.1.0":{"name":"types-json","version":"1.1.0","description":"Type checking for JSON objects","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/types-json","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/types-json.git"},"keywords":["json","object","value","array","typescript","types","type","checking","guard","guards"],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn build","test":"jest"},"devDependencies":{"@bconnorwhite/bob":"^2.1.0","jest":"^26.4.2"},"_id":"types-json@1.1.0","dist":{"shasum":"6ee9fb9fa015f74a4e80376b60b2249f03513edd","size":1612,"noattachment":false,"key":"/types-json/-/types-json-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/types-json/download/types-json-1.1.0.tgz"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types-json_1.1.0_1599706171049_0.7326637853167313"},"_hasShrinkwrap":false,"publish_time":1599706171219,"_cnpm_publish_time":1599706171219},"1.0.8":{"name":"types-json","version":"1.0.8","description":"Type checking for JSON objects","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/types-json","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/types-json.git"},"keywords":["json","object","value","array","typescript","types","type","checking","guard","guards"],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn build","test":"jest"},"devDependencies":{"@bconnorwhite/bob":"^2.0.1","jest":"^26.4.2"},"_id":"types-json@1.0.8","dist":{"shasum":"78214e3ebfebe9c81517da87f880c8805c150722","size":1385,"noattachment":false,"key":"/types-json/-/types-json-1.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/types-json/download/types-json-1.0.8.tgz"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types-json_1.0.8_1599536866474_0.6553105161114763"},"_hasShrinkwrap":false,"publish_time":1599536866590,"_cnpm_publish_time":1599536866590},"1.0.7":{"name":"types-json","version":"1.0.7","description":"Type checking for JSON objects","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/types-json","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/types-json.git"},"keywords":["json","object","value","array","typescript","types","type","checking","guard","guards"],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn build","test":"jest"},"devDependencies":{"@bconnorwhite/bob":"^2.0.1","jest":"^26.4.2"},"_id":"types-json@1.0.7","dist":{"shasum":"d7e929c3dc88c6362c445526338ad1c3e641cb39","size":1301,"noattachment":false,"key":"/types-json/-/types-json-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/types-json/download/types-json-1.0.7.tgz"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types-json_1.0.7_1599507534235_0.42637993905722493"},"_hasShrinkwrap":false,"publish_time":1599507534358,"_cnpm_publish_time":1599507534358},"1.0.6":{"name":"types-json","version":"1.0.6","description":"Type checking for json objects","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/types-json","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/types-json.git"},"keywords":["json","object","value","array","typescript","types","type","checking","guard","guards"],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn build","test":"jest"},"devDependencies":{"@bconnorwhite/bob":"^2.0.1","jest":"^26.4.2"},"_id":"types-json@1.0.6","dist":{"shasum":"b0e2c05c68185b3057dac55b9da2aa15407cf98d","size":1299,"noattachment":false,"key":"/types-json/-/types-json-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/types-json/download/types-json-1.0.6.tgz"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/types-json_1.0.6_1599503438906_0.12883497689751544"},"_hasShrinkwrap":false,"publish_time":1599503439015,"_cnpm_publish_time":1599503439015}},"readme":"<div align=\"center\">\n  <h1>types-json</h1>\n  <a href=\"https://npmjs.com/package/types-json\">\n    <img alt=\"NPM\" src=\"https://img.shields.io/npm/v/types-json.svg\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/types-json\">\n    <img alt=\"TypeScript\" src=\"https://img.shields.io/github/languages/top/bconnorwhite/types-json.svg\">\n  </a>\n  <a href='https://coveralls.io/github/bconnorwhite/types-json?branch=master'>\n    <img alt=\"Coverage Status\" src=\"https://img.shields.io/coveralls/github/bconnorwhite/types-json.svg?branch=master\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/types-json\">\n    <img alt=\"GitHub Stars\" src=\"https://img.shields.io/github/stars/bconnorwhite/types-json?label=Stars%20Appreciated%21&style=social\">\n  </a>\n  <a href=\"https://twitter.com/bconnorwhite\">\n    <img alt=\"Twitter Follow\" src=\"https://img.shields.io/twitter/follow/bconnorwhite.svg?label=%40bconnorwhite&style=social\">\n  </a>\n</div>\n\n<br />\n\n> Type checking for JSON objects.\n\nDerived from [type-fest](https://www.npmjs.com/package/type-fest) with a focus on JSON types.\n\n## Installation\n\n```sh\nyarn add types-json\n```\n\n```sh\nnpm install types-json\n```\n\n## API\n\n### Types\n```ts\nimport {\n  isJSONValue,\n  isJSONObject,\n  isJSONArray,\n  isString,\n  isNumber,\n  isBoolean,\n  isNull,\n  isUndefined,\n  JSONObject,\n  JSONValue,\n  JSONArray\n} from \"types-json\";\n\nfunction isJSONValue(object?: JSONValue): boolean;\n\nfunction isJSONObject(object?: JSONValue): boolean;\n\nfunction isJSONArray(object?: JSONValue): boolean;\n\nfunction isString(object?: JSONValue): boolean;\n\nfunction isNumber(object?: JSONValue): boolean;\n\nfunction isBoolean(object?: JSONValue): boolean;\n\nfunction isNull(object?: JSONValue): boolean;\n\nfunction isUndefined(object?: JSONValue): boolean;\n\ntype JSONObject = {\n  [key in string]?: JSONValue\n};\n\ntype JSONValue = string | number | boolean | null | JSONObject | JSONArray;\n\ninterface JSONArray extends Array<JSONValue> {};\n```\n\n<br />\n\n<h2>Dev Dependencies<img align=\"right\" alt=\"David\" src=\"https://img.shields.io/david/dev/bconnorwhite/types-json.svg\"></h2>\n\n- [@bconnorwhite/bob](https://www.npmjs.com/package/@bconnorwhite/bob): Bob is a toolkit for TypeScript projects\n\n<br />\n\n<h2>License <img align=\"right\" alt=\"license\" src=\"https://img.shields.io/npm/l/types-json.svg\"></h2>\n\n[MIT](https://opensource.org/licenses/MIT)\n\n<br />\n\n## Related Packages\n\n- [types-pkg-json](https://www.npmjs.com/package/types-pkg-json): Type checking for package.json\n- [types-tsconfig](https://www.npmjs.com/package/types-tsconfig): Type checking for tsconfig.json\n- [types-eslintrc](https://www.npmjs.com/package/types-eslintrc): Type checking for .eslintrc.json\n","_attachments":{},"homepage":"https://connorwhite.org/github/types-json","license":"MIT"}