justify_json {teal.slice}R Documentation

Justify colons in JSON string

Description

This function takes a JSON string as input, splits it into lines, and pads element names with spaces so that colons are justified between lines.

Usage

justify_json(json)

Arguments

json

(character(1)) a JSON string.

Value

A list of character strings, which can be collapsed into a JSON string.


[Package teal.slice version 0.5.1 Index]