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)


jeremystan/tidyjson documentation built on Feb. 4, 2023, 6:54 p.m.