Learn R Programming

teal.slice (version 0.5.1)

justify_json: 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)

Value

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

Arguments

json

(character(1)) a JSON string.