jsonErase: Erase property or element

Description Usage Arguments Value Examples

View source: R/jsonStrings.R

Description

Erase an object property or an array element from a JSON string.

Usage

1
jsonErase(jsonstring, at)

Arguments

jsonstring

a JSON string representing an object or an array

at

either a character string, the key of the property to be erased, or an integer, the index of the array element to be erased

Value

A JSON string.

Examples

1
jsonErase("{\"a\":[1,2,3],\"b\":\"hello\"}", "a")

jsonStrings documentation built on May 25, 2021, 5:08 p.m.