json_prettify: Prettify/Minify a JSON vector

Description Usage Arguments Value Examples

View source: R/prettify.R

Description

A wrapper around jsonlite::prettify() resp. jsonlite::minify().

Usage

1
2
3
json_prettify(x, indent = 3)

json_minify(x)

Arguments

x

A JSON vector.

indent

number of spaces to indent.

Value

A json2 vector.

Examples

1
2
3
x <- c("[1,2,   3]", '{"a": 1, "b": 2}')
json_prettify(x)
json_minify(x)

jsontools documentation built on March 22, 2021, 5:06 p.m.