json_get_column: Make the JSON data a persistent column

Description Usage Arguments Value Examples

View source: R/tbl_json.R

Description

Extract the raw JSON from a tbl_json object. Store it in a column. WARNING: column name collisions will be overwritten

Usage

1
json_get_column(.data, column_name = "json")

Arguments

.data

A tbl_json object

column_name

Optional. The name of the output column (either as a string or unquoted name). Default "json"

Value

A tbl_json object with an added column containing the JSON data

Examples

1
2
tj <- as_tbl_json('{"a": "b"}')
json_get_column(tj, my_json)

tidyjson documentation built on July 2, 2020, 12:15 a.m.