json_get_column: Make the JSON data a persistent column

View source: R/tbl_json.R

json_get_columnR Documentation

Make the JSON data a persistent column

Description

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

Usage

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


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


tidyjson documentation built on Jan. 7, 2023, 1:14 a.m.