{"_id":"@ast-grep/lang-json","_rev":"6-83c9ad1685349efe275ba3dae27bec12","name":"@ast-grep/lang-json","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.2":{"name":"@ast-grep/lang-json","version":"0.0.2","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-json@0.0.2","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"307261f1fbae0a03291f7a318c122078d072fdb1","tarball":"https://registry.npmjs.org/@ast-grep/lang-json/-/lang-json-0.0.2.tgz","fileCount":16,"integrity":"sha512-ez1tobrvtyIbfgZuofZ06Pz1yF6jlu2G202KTqkpbUv2qiWvqei+lQtv6mcMGUG4cVjWJnO4KAkbysqcD5qPBQ==","signatures":[{"sig":"MEQCIDEl2W7DF4Un4+hk/Yn/7N6XgxaHxV4vYDlEKdWwZnhjAiBXdtVTw4Z+AXW+pVZ42fEDgiReUvRXcA4kP+U7Y1Jcog==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":135810},"main":"index.js","_from":"file:ast-grep-lang-json-0.0.2.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/37716f24bc3417f940c142f15e368040/ast-grep-lang-json-0.0.2.tgz","_integrity":"sha512-ez1tobrvtyIbfgZuofZ06Pz1yF6jlu2G202KTqkpbUv2qiWvqei+lQtv6mcMGUG4cVjWJnO4KAkbysqcD5qPBQ==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.0","dependencies":{"@ast-grep/setup-lang":"0.0.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.24.6","tree-sitter-json":"0.24.8","@ast-grep/nursery":"0.0.3"},"peerDependencies":{"tree-sitter-cli":"0.24.6"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-json_0.0.2_1744258121404_0.10956581183302827","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@ast-grep/lang-json","version":"0.0.3","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-json@0.0.3","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"391ddb652cfc9f2931a1cf88095516e8dce442ff","tarball":"https://registry.npmjs.org/@ast-grep/lang-json/-/lang-json-0.0.3.tgz","fileCount":16,"integrity":"sha512-rixdx1oiQXliehQmg6zDsv4iuYjqenfLk+LelR3WwG0HDlU8XRIMeeN9WorgJrFh+I9m20VwSyZ5awrKzMzjsw==","signatures":[{"sig":"MEQCIEnKcdiLxDsy147vdx7b7hUjaeHpC2x6yi5JMH3KQYeQAiBU5PzN81La66WS5Liw4q7rIsS5RTUDCOIzMzv2O3oJZw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":135810},"main":"index.js","_from":"file:ast-grep-lang-json-0.0.3.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/b7fd4ac682eaff810c5e388bc5381298/ast-grep-lang-json-0.0.3.tgz","_integrity":"sha512-rixdx1oiQXliehQmg6zDsv4iuYjqenfLk+LelR3WwG0HDlU8XRIMeeN9WorgJrFh+I9m20VwSyZ5awrKzMzjsw==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.1","dependencies":{"@ast-grep/setup-lang":"0.0.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.25.6","tree-sitter-json":"0.24.8","@ast-grep/nursery":"0.0.5"},"peerDependencies":{"tree-sitter-cli":"0.25.6"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-json_0.0.3_1749433938977_0.4891674606404093","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@ast-grep/lang-json","version":"0.0.4","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-json@0.0.4","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"3a2f130880684b04291b2b695de760a744991dba","tarball":"https://registry.npmjs.org/@ast-grep/lang-json/-/lang-json-0.0.4.tgz","fileCount":16,"integrity":"sha512-ig+N5Ub+gV3qEBOZeKOS3e2ms/pYPHfbtC2VyEcW9EnWfRwYChVDEaMtmv8UxnWbAIRIrxHoGUnCh0L4slIbRQ==","signatures":[{"sig":"MEUCIBJB0CxymLtXbBUP5bwQxqIbwGx4uRiQH4ReJgxQkMIiAiEA+Ej43HlMAUjIRkcX7uOiZPpJ9tx+g4gko5bILUwBscw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":136261},"main":"index.js","_from":"file:ast-grep-lang-json-0.0.4.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/9b8577b583bafa02fed62537a1c89c89/ast-grep-lang-json-0.0.4.tgz","_integrity":"sha512-ig+N5Ub+gV3qEBOZeKOS3e2ms/pYPHfbtC2VyEcW9EnWfRwYChVDEaMtmv8UxnWbAIRIrxHoGUnCh0L4slIbRQ==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.4","dependencies":{"@ast-grep/setup-lang":"0.0.4"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.25.8","tree-sitter-json":"0.24.8","@ast-grep/nursery":"0.0.7"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-json_0.0.4_1755141408321_0.9043768218112382","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@ast-grep/lang-json","version":"0.0.5","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-json@0.0.5","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"42a1c563dd48deeb60b521887143711538602f91","tarball":"https://registry.npmjs.org/@ast-grep/lang-json/-/lang-json-0.0.5.tgz","fileCount":16,"integrity":"sha512-pA+QNncxNFIGzL1VIqZCYTkOIcdNInOr+z37/ch31qvFjxyOsvkQkgjeQLKHkYfN+1bF7m5AZS6aE1CvG2dZjw==","signatures":[{"sig":"MEUCICTJGuNOALAcwJUoN5m8YxOuXD5D559ZWNNY/3I+7n0zAiEAg5mzzcRSKZM1hfFITvFfY3/xAhSRKJocCgkqky2VQcA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":136261},"main":"index.js","_from":"file:ast-grep-lang-json-0.0.5.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/c88e956386c40893592cd1dfe3fb5207/ast-grep-lang-json-0.0.5.tgz","_integrity":"sha512-pA+QNncxNFIGzL1VIqZCYTkOIcdNInOr+z37/ch31qvFjxyOsvkQkgjeQLKHkYfN+1bF7m5AZS6aE1CvG2dZjw==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@ast-grep/setup-lang":"0.0.5"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.25.8","tree-sitter-json":"0.24.8","@ast-grep/nursery":"0.0.8"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-json_0.0.5_1765433455483_0.5556536735063027","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@ast-grep/lang-json","version":"0.0.6","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","_id":"@ast-grep/lang-json@0.0.6","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"dist":{"shasum":"01ad85125bc7927cfd3d899f26ae7eb9711caa9b","tarball":"https://registry.npmjs.org/@ast-grep/lang-json/-/lang-json-0.0.6.tgz","fileCount":17,"integrity":"sha512-xb4OXtyuyY9RqUs5Af4Jb5hAJcBD0hGD1rJSQm1chJqdWOjhM6G7V2vHLx6B8M9uXuTBnaNs4U4OccMp+e95JQ==","signatures":[{"sig":"MEUCIGUhZBOHzcnBSCcvXfcyW70KGAUQk/KeS+GqcguDKuULAiEA64zB5SLe+4Use1IBecKP02JHP7GFiTI0g0hHVOUbW+k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":206973},"main":"index.js","_from":"file:ast-grep-lang-json-0.0.6.tgz","types":"./index.d.ts","scripts":{"test":"node nursery.js test","build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js"},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"_resolved":"/tmp/839a133046f928f3c316f75a22e966a8/ast-grep-lang-json-0.0.6.tgz","_integrity":"sha512-xb4OXtyuyY9RqUs5Af4Jb5hAJcBD0hGD1rJSQm1chJqdWOjhM6G7V2vHLx6B8M9uXuTBnaNs4U4OccMp+e95JQ==","_npmVersion":"10.8.2","description":"## Installation","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@ast-grep/setup-lang":"0.0.6"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"tree-sitter-cli":"0.25.8","tree-sitter-json":"0.24.8","@ast-grep/nursery":"0.0.9"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/lang-json_0.0.6_1768081571571_0.3147647055615981","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@ast-grep/lang-json","version":"0.0.7","description":"## Installation","main":"index.js","keywords":["ast-grep","ast-grep-lang"],"author":"","license":"ISC","dependencies":{"@ast-grep/setup-lang":"0.0.6"},"peerDependencies":{"tree-sitter-cli":"0.25.8"},"peerDependenciesMeta":{"tree-sitter-cli":{"optional":true}},"devDependencies":{"@ast-grep/nursery":"0.0.9","tree-sitter-cli":"0.25.8","tree-sitter-json":"0.24.8"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"tree-sitter build -o parser.so","source":"node nursery.js source","postinstall":"node postinstall.js","test":"node nursery.js test"},"_id":"@ast-grep/lang-json@0.0.7","types":"./index.d.ts","_integrity":"sha512-8wiH+B4Rih8/vHsUB4DOTXnQHMxfWhaBygUEZ036kfr1T9WFvx5E7QYd2WX2Wm1nFCzUmWbIfsoE+cR2G9SJlA==","_resolved":"/tmp/efbaa74a92f64454ca655b9126bab654/ast-grep-lang-json-0.0.7.tgz","_from":"file:ast-grep-lang-json-0.0.7.tgz","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-8wiH+B4Rih8/vHsUB4DOTXnQHMxfWhaBygUEZ036kfr1T9WFvx5E7QYd2WX2Wm1nFCzUmWbIfsoE+cR2G9SJlA==","shasum":"06a07a26553f277da42666d51e0faa09d289d43b","tarball":"https://registry.npmjs.org/@ast-grep/lang-json/-/lang-json-0.0.7.tgz","fileCount":18,"unpackedSize":224166,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBj7kM7UpzFdmCxLCVT/Y1L8nI5j4o4MOqLcOF4NZE0nAiEA/TXlvBQzhXVG5/CVM+a79aKwIo/F1AoQQxn9bw+KtwQ="}]},"_npmUser":{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"},"directories":{},"maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lang-json_0.0.7_1773542700730_0.6043372265313138"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-10T04:08:41.341Z","modified":"2026-03-15T02:45:01.004Z","0.0.2":"2025-04-10T04:08:41.604Z","0.0.3":"2025-06-09T01:52:19.151Z","0.0.4":"2025-08-14T03:16:48.516Z","0.0.5":"2025-12-11T06:10:55.643Z","0.0.6":"2026-01-10T21:46:11.707Z","0.0.7":"2026-03-15T02:45:00.877Z"},"license":"ISC","keywords":["ast-grep","ast-grep-lang"],"description":"## Installation","maintainers":[{"name":"herringtondarkholme","email":"nonamesheep@outlook.com"}],"readme":"# ast-grep napi language for json\n\n## Installation\n\nIn a pnpm project, run:\n\n```bash\npnpm install @ast-grep/lang-json\npnpm install @ast-grep/napi\n# install the tree-sitter-cli if no prebuild is available\npnpm install tree-sitter-cli --save-dev\n```\n\n## Usage\n\n```js\nimport json from '@ast-grep/lang-json'\nimport { registerDynamicLanguage, parse } from '@ast-grep/napi'\n\nregisterDynamicLanguage({ json })\n\nconst sg = parse('json', `your code`)\nsg.root().kind()\n```\n","readmeFilename":"README.md"}