cat_json_str: Concatenate stringified JSON

View source: R/cat_json_str.R

cat_json_strR Documentation

Concatenate stringified JSON

Description

Strips 'stringified' JSON of newlines and spaces following colons or commas.

Usage

cat_json_str(txt)

Arguments

txt

The string of stringified JSON to be concatenated.

Value

A string (stringified JSON), stripped of any newlines and spaces following colons or commas.

Examples

cat_json_str("{\n    'v1': [20],\n    'v2': [1.5]\n  }")


toniprice/jute documentation built on Jan. 11, 2023, 8:23 a.m.