{"name":"@codemirror/lang-json","version":"0.19.1","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/highlight":"^0.19.0","@codemirror/language":"^0.19.0","@lezer/json":"^0.15.0"},"devDependencies":{"@codemirror/buildhelper":"^0.1.0"},"repository":{"type":"git","url":"git+https://github.com/codemirror/lang-json.git"},"gitHead":"b84cd773d02906aeb4669febd424c0a0ec183155","bugs":{"url":"https://github.com/codemirror/lang-json/issues"},"homepage":"https://github.com/codemirror/lang-json#readme","_id":"@codemirror/lang-json@0.19.1","_nodeVersion":"16.4.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-66K5TT9HO0ODtpjY+3Ub6t3r0OB1d27P+Kl5oygk4tDavHUBpsyHTJRFw/CdeRM2VwjbpBfctGm/cTrSthFDZg==","shasum":"616588d1422529965243c10af6c44ad0b9134fb0","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-json/download/@codemirror/lang-json-0.19.1.tgz","fileCount":8,"unpackedSize":10457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhE9BkCRA9TVsSAnZWagAAQusP/izrUsNzVp2ndIJ65VNA\nqS7lWj3mBbIW1h0IxNgVSLDreBelOxKbf0P//XZrZnws5EYC63JiBAVr2OBj\n9kEMc2XxntHGE+aDK18oY/CIRiGu39pf4jS5XO6CpOwnPT2gbEMlLAFQ95bW\nWzpZR0VwqkzMvYXBX66n89JsgeopUB4IkEkKtF5n6NlULEGkdPptZCFA1K6W\n4amuysRmPrdlBCmxmteP9Y8Dau6B2CpPql4uc80t19nJSHQIooMkPcZJGPYB\nOQ2UW7n1aDJtPl5BirqLRYMxYoj05gyJBVKq/k27+MhWZUv0RWkMutWl0HYM\n1mxGTb1qwjcg7NHNJ14M4v3DJCbGW+8e+js85FMlEkU4FvOjtxBWuyZyK6O1\n5WikGF2hPZBm/SkIu/ZIldiO7tgxgAoN8u5DWq3Onn++d6WnbdMfC6zvEhKP\nF/gmUnjfzlIBXzVk9JeQRIBb28tF+sCK1rnwXRMEZ8b0LCrUCbOysIrnjH9p\nT808thhy+IHiEgyLB7ZDbx4ZSiA4KXfChR+4ZfKcyBlZMi6PEcdwJpPtK8J9\nxeGbgjc59A1QxGFIUqi03P17PFf261Jc26RUG+ieHJ8/+ItvKSTraGzE2bpd\nngFrOFIOaQ8CDcwNfjxpW+1uaH9tufK+ke9QZssJkC7QpHRtBPqkXP5YGCcx\n1fkF\r\n=cv3Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGDsY29j2uZcvE4d8CRhp2czaRO49I5viq2ZSHdyC+keAiAVf31wzX2HmjYOjFBXgdQ4ubtQP5luJL83rmWoY1PpwA=="}],"size":3566,"noattachment":false,"key":"/@codemirror/lang-json/-/@codemirror/lang-json-0.19.1.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.19.1_1628688484696_0.8346287842011539"},"_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":1628688484871,"_cnpm_publish_time":1628688484871,"dist-tags":{"latest":"6.0.2"}}