{"name":"@codemirror/lang-json","version":"0.20.0","description":"JSON language support for the CodeMirror code editor","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/json.ts"},"keywords":["editor","code"],"author":{"name":"Marijn Haverbeke","email":"marijnh@gmail.com","url":"http://marijnhaverbeke.nl"},"type":"module","main":"dist/index.cjs","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"types":"dist/index.d.ts","module":"dist/index.js","sideEffects":false,"license":"MIT","dependencies":{"@codemirror/language":"^0.20.0","@lezer/json":"^0.16.0"},"devDependencies":{"@codemirror/buildhelper":"^0.1.0"},"repository":{"type":"git","url":"git+https://github.com/codemirror/lang-json.git"},"gitHead":"76903a71b60305be038e9575f6f7fc797863fdc2","bugs":{"url":"https://github.com/codemirror/lang-json/issues"},"homepage":"https://github.com/codemirror/lang-json#readme","_id":"@codemirror/lang-json@0.20.0","_nodeVersion":"16.13.1","_npmVersion":"8.4.0","dist":{"integrity":"sha512-Dj9iW3larS3HDdzd8+GXP5+7EUG7SeQexy0mh7l3N/n7vicIY+9AxRPZ1H6nsVI97uZpYIm8OZWG/eUzCdksdA==","shasum":"0cef6c3db35a4d9107896312b444d41f77cda0b4","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-json/download/@codemirror/lang-json-0.20.0.tgz","fileCount":8,"unpackedSize":9657,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDp8Ulv2IwJZAi4v4sTgU2TYQqV7y7jdnpCcpvBGBNalwIgc/ns0bawTZB/AyfFZM2IpyeH0yVi0ivtJQ+9wxh97cI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYBVcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/tQ//UK4cSV9lqC0aVuZiW1y2PYFgVoUVsEuo6GVsiHRLAtqgyyTW\r\nbtHH5vMDGO2Puq6FZUqUZJi30F/2EsEJSPsNWMarHSX7pTt+4TD81HXobnsA\r\nh57nZz2xGNkluYq83PqhsLhFd5ZNRpeIlqvlPESIlD6b0Ns42YsOIOCSs8wV\r\noMLO5l8T24DfiQrmi871PZMEgB/EbZnB7NCFw/7ZP735hrGn6VZlv9lZb8Zc\r\nBaAnbPaxHNDCM9kq/1WGcD3C3t3NEEHGZBkay3RYNy6iL1McPTSUjznulYnA\r\nPtBBvtlhp9NDdZ0dolpkyE++fsO9djl+6L13hqZtDso+jq5KLbn9YyysORrw\r\nDOf8Ui4UotE0/RabxrUnBRMCkF55DoGYi4SBB3A7z34i8ufuqtJrYbkSrl8O\r\n9tybJAPB4+Oxk+adVQawk3/MHJjINwFIBpAszjwOi8wWSRji21ImmQYmsb1M\r\nYOtVJyFJXXmiKx/Xw3/TAECSTaK1Eo11IP4Tdd+Khz8KFO5bRhpOxjav+aBb\r\nQkV2Kss/wSE8wDIimv8Fs9VEhs1qRGkJOtIJ6O+FVxziU9iPSAFozxOzGDtw\r\nMunIM0w+dbs25JyDv5xOSHWNmdJM9gWcht2cuLf3msKE1NlCwGW/lkw2Yt3U\r\nmntJ72nHGVwEMTQXB5dHzn/jL41qfr1nrbY=\r\n=uJIY\r\n-----END PGP SIGNATURE-----\r\n","size":3453,"noattachment":false,"key":"/@codemirror/lang-json/-/@codemirror/lang-json-0.20.0.tgz"},"_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"directories":{},"maintainers":[{"name":"adrianheine","email":"mail@adrianheine.de"},{"name":"marijn","email":"marijnh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lang-json_0.20.0_1650464092152_0.9637000427639055"},"_hasShrinkwrap":false,"readme":"<!-- NOTE: README.md is generated from src/README.md -->\n\n# @codemirror/lang-json [![NPM version](https://img.shields.io/npm/v/@codemirror/lang-json.svg)](https://www.npmjs.org/package/@codemirror/lang-json)\n\n[ [**WEBSITE**](https://codemirror.net/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-json/blob/main/CHANGELOG.md) ]\n\nThis package implements JSON language support for the\n[CodeMirror](https://codemirror.net/) code editor.\n\nThe [project page](https://codemirror.net/) has more information, a\nnumber of [examples](https://codemirror.net/examples/) and the\n[documentation](https://codemirror.net/docs/).\n\nThis code is released under an\n[MIT license](https://github.com/codemirror/lang-json/tree/main/LICENSE).\n\nWe aim to be an inclusive, welcoming community. To make that explicit,\nwe have a [code of\nconduct](http://contributor-covenant.org/version/1/1/0/) that applies\nto communication around the project.\n\n## API Reference\n<dl>\n<dt id=\"user-content-json\">\n  <code><strong><a href=\"#user-content-json\">json</a></strong>() → <a href=\"https://codemirror.net/docs/ref#language.LanguageSupport\">LanguageSupport</a></code></dt>\n\n<dd><p>JSON language support.</p>\n</dd>\n<dt id=\"user-content-jsonlanguage\">\n  <code><strong><a href=\"#user-content-jsonlanguage\">jsonLanguage</a></strong>: <a href=\"https://codemirror.net/docs/ref#language.LezerLanguage\">LezerLanguage</a></code></dt>\n\n<dd><p>A language provider that provides JSON parsing.</p>\n</dd>\n<dt id=\"user-content-jsonparselinter\">\n  <code><strong><a href=\"#user-content-jsonparselinter\">jsonParseLinter</a></strong>() → fn(<a id=\"user-content-jsonparselinter^returns^view\" href=\"#user-content-jsonparselinter^returns^view\">view</a>: <a href=\"https://codemirror.net/docs/ref#view.EditorView\">EditorView</a>) → <a href=\"https://codemirror.net/docs/ref#lint.Diagnostic\">Diagnostic</a>[]</code></dt>\n\n<dd><p>Calls\n<a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse\"><code>JSON.parse</code></a>\non the document and, if that throws an error, reports it as a\nsingle diagnostic.</p>\n</dd>\n</dl>\n\n","publish_time":1650464092351,"_cnpm_publish_time":1650464092351,"dist-tags":{"latest":"6.0.2"}}