jsonify: Convert a list to a justified 'JSON' string

View source: R/teal_slice.R

jsonifyR Documentation

Convert a list to a justified JSON string

Description

This function takes a list and converts it to a JSON string. The resulting JSON string is then optionally justified to improve readability and trimmed to easier fit in the console when printing.

Usage

jsonify(x, trim_lines)

Arguments

x

(list), possibly recursive, obtained from teal_slice or teal_slices.

trim_lines

(logical(1)) flag specifying whether to trim lines of the JSON string.

Value

A JSON string representation of the input list.


teal.slice documentation built on May 29, 2024, 1:39 a.m.