as_json: as_json

Description Usage Arguments Details Examples

View source: R/as_json.R

Description

as_json

Usage

1

Arguments

x

an emld object

file

optional path to write out to file. Otherwise, defaults to NULL and will return a json object.

Details

Note: since emld list object maintains a 1:1 correspondence with JSON, following the conventions of jsonlite, this function is basically trivial. The only purpose is to default to auto_unbox = TRUE in serializing lists to JSON.

Examples

1
2
3
f <- system.file("extdata/example.xml", package = "emld")
emld <- as_emld(f)
json <- as_json(emld)

cboettig/emljson documentation built on Dec. 6, 2018, 3:10 p.m.