Skip to contents

Convert any trelliscope R6 object to JSON

Usage

as_json(trdf, pretty = TRUE)

Arguments

trdf

A trelliscope data frame created with as_trelliscope_df() or a data frame which will be cast as such.

pretty

Adds indentation whitespace to JSON output. Can be TRUE/FALSE or a number specifying the number of spaces to indent.