Metadata-Version: 2.4
Name: rbtr-lang-json
Version: 2026.9.0.dev1
Summary: rbtr — JSON language plugin
Keywords: code-search,code-index,tree-sitter,static-analysis,semantic-search,developer-tools,json
Author: Alejandro Giacometti
Author-email: Alejandro Giacometti <alejandro.giacometti@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Text Processing :: Indexing
Classifier: Typing :: Typed
Requires-Dist: rbtr==2026.9.0.dev1
Requires-Dist: tree-sitter-json
Requires-Python: >=3.13
Project-URL: Homepage, https://github.com/janrito/rbtr
Project-URL: Repository, https://github.com/janrito/rbtr
Project-URL: Documentation, https://github.com/janrito/rbtr/tree/main/packages/rbtr-lang-json#readme
Project-URL: Issues, https://github.com/janrito/rbtr/issues
Project-URL: Changelog, https://github.com/janrito/rbtr/releases
Description-Content-Type: text/markdown

# rbtr-lang-json

JSON support for [rbtr]. Optional plugin — install with
`pip install rbtr[json]`.

[rbtr]: https://github.com/janrito/rbtr/tree/main/packages/rbtr#readme

## What it ingests

Top-level keys of the root object become **config-key** chunks (JSON is data,
not code). Non-object JSON (arrays, scalars) produces no structural chunks and
falls through to plaintext.

A `$ref` or an `extends` names another file, so each becomes an **import**
and links the two documents. A `$ref`'s pointer — the part after the `#` —
names a key inside the file it reaches, so the edge lands on that key rather
than on the document as a whole.

## Chunks produced

```json
{
  "name": "my-project",     // config_key "name"
  "version": "1.0.0",       // config_key "version"
  "dependencies": { … }     // config_key "dependencies"
}
```

## Embedded / injected chunks

None. JSON does not embed other languages.

## Grammar & dependencies

Uses the `tree-sitter-json` grammar. No dependency on other language plugins.
