Skip to content

Quickstart

Serialization

serialize_json()
Serialize an R object to JSON
unserialize_json()
Unserialize a JSON file or string into an R object

Printing

format(<tsjson>)
Format a tsjson object
print(<tsjson>)
Print a tsjson object

Extraction

load_json()
Parse a JSON file or string into a tsjson object
select() `[[`(<tsjson>) select_refine()
Select elements in a tsjson object

Manipulation

delete_selected()
Delete selected elements from a tsjson object
`select<-`() `[[<-`(<tsjson>)
Update selected elements in a tsjson object
format_selected()
Format the selected JSON elements
insert_into_selected()
Insert a new element into the selected ones in a tsjson object
save_json()
Write a tsjson object to a file
unserialize_selected()
Unserialize selected elements from a tsjson object
update_selected()
Replace selected JSON elements with a new element
select() `[[`(<tsjson>) select_refine()
Select elements in a tsjson object

Utilities and Options

query_json()
Run tree-sitter queries on a JSON file or string
sexpr_json()
Show the syntax tree structure of a JSON file or string
syntax_tree_json()
Show the annotated syntax tree of a JSON file or string
token_table()
Get the token table of a JSON file or string
tsjson_options
tsjson options
`[`(<tsjson>)
Convert a tsjson object to a data frame