compact_json_str: Compact stringified JSON

Description Usage Arguments Value Examples

Description

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

Usage

1

Arguments

txt

character: the stringified JSON to be compacted.

Value

character: a string (stringified JSON), stripped of newlines and spaces following colons or commas.

Examples

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

toniprice/jutebag documentation built on May 12, 2019, 4:39 a.m.