{"_id":"@anyhowstep/is-json-type","_rev":"2-1ae0f11859b8aa3d26aec001f232c692","name":"@anyhowstep/is-json-type","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.3":{"name":"@anyhowstep/is-json-type","version":"1.0.3","description":"Checks if a variable came from JSON.parse()","main":"dist/src/main/index.js","types":"dist/src/main/index.d.ts","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc -d"},"author":{"name":"anyhowstep"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/AnyhowStep/is-json-type.git"},"dependencies":{"typescript":"^2.8.0-dev.20180214"},"gitHead":"9849d733090313e7d097639bf91be1664bec742c","bugs":{"url":"https://github.com/AnyhowStep/is-json-type/issues"},"homepage":"https://github.com/AnyhowStep/is-json-type#readme","_id":"@anyhowstep/is-json-type@1.0.3","_npmVersion":"5.3.0","_nodeVersion":"6.11.0","_npmUser":{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"},"dist":{"integrity":"sha512-U6gWlJ6mh1ydkmreXDfWDp9caQbznGt22mz3C6okhooZwtfOM6YanT6Xg799zT0L9DP8WvOnPbP2Dr7Mwg8JNQ==","shasum":"d43381dbbc301fc764a6012238f74f031c94e26a","tarball":"https://registry.npmjs.org/@anyhowstep/is-json-type/-/is-json-type-1.0.3.tgz","fileCount":8,"unpackedSize":10372,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICrSxL/tKkfvo/4nv+/0lTi1MpI9u36jHnLk9LLhvyyFAiAc/59hJuOSeO2odl/j09JBm0QGCdm+LyfwenL1Fyzt/g=="}]},"maintainers":[{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-json-type_1.0.3_1518636315860_0.2833215273939047"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-14T19:25:15.765Z","1.0.3":"2018-02-14T19:25:15.911Z","modified":"2022-04-04T14:26:59.977Z"},"maintainers":[{"name":"anyhowstep","email":"justin.ng.1994@outlook.com"}],"description":"Checks if a variable came from JSON.parse()","homepage":"https://github.com/AnyhowStep/is-json-type#readme","repository":{"type":"git","url":"git+https://github.com/AnyhowStep/is-json-type.git"},"author":{"name":"anyhowstep"},"bugs":{"url":"https://github.com/AnyhowStep/is-json-type/issues"},"license":"ISC","readme":"### Install\n\n`npm install --save is-json-type`\n\n### Notes\n\nRight now, this library considers `undefined` a JSON primitive type (even though it is not).\n\nNote the following gotcha',\n\n```\nJSON.stringify({ x : undefined }); //'{}'\nJSON.stringify({ x : null });      //'{ \"x\" : null }'\n```\n\n### Usage\n\n```\ndeclare const mixed : any;\n\nif (isJsonPrimitiveType(mixed)) {\n    //mixed is string|number|boolean|null|undefined\n}\nif (isJsonObjectType(mixed)) {\n    //mixed is { [key : string] : JsonType; }\n}\nif (isJsonArrayType(mixed)) {\n    //mixed is JsonType[]\n}\nif (isJsonType(mixed)) {\n    //mixed is JsonType\n}\n/*\n    A JsonType is recursively defined.\n    A JsonType is one of the following,\n\n    + A JSON primitive\n    + An object with JsonType values\n    + An array of JsonType.\n*/\n```\n","readmeFilename":"README.md"}