Learn R Programming

tidyjson (version 0.3.2)

json_get_column: 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")

Value

A tbl_json object with an added column containing the JSON data

Arguments

.data

A tbl_json object

column_name

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

Examples

Run this code

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

Run the code above in your browser using DataLab