Skip to content

Quickstart

Parsing

ts_tree_new()
Create a new tree-sitter tree for a JSONC document.
ts_parse_jsonc() ts_read_jsonc()
Parse a JSON file or string into a ts_tree_jsonc object
ts_language_jsonc()
Tree sitter language object for JSONC

Selection

ts_tree_select()
Select parts of a JSONC tree-sitter tree.

Editing

ts_tree_delete()
Delete selected elements from a JSONC tree-sitter tree.

Serialization

ts_serialize_jsonc()
Serialize an R object to JSON
ts_unserialize_jsonc()
Unserialize a JSON file or string into an R object

Formatting

ts_format_jsonc()
Format a JSONC file

Options

tsjsonc_options
tsjsonc options