read_json: Function to read JSON files.

View source: R/read_json.R

read_jsonR Documentation

Function to read JSON files.

Description

Simple wrapper for jsonlite::fromJSON.

Usage

read_json(file, flatten = TRUE)

Arguments

file

File name of JSON file or character vector containing a JSON string.

flatten

Should the JSON file be flattened?

Value

An R data structure representing the JSON content.

Author(s)

Stuart K. Grange


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.