j_encode: Encoding Function

Description Usage Arguments Examples

View source: R/encode.R

Description

Used to encode a data.frame or list. By default, the output will be a base64 encoded JSON.

Usage

1
j_encode(data, json = TRUE)

Arguments

data

A list or data.frame to encode.

json

Defaults to TRUE. If TRUE, the output will be a base64 encoded JSON, else, the output will be an encoded string.

Examples

1
2
3
# Transform a data.frame to an encoded JSON string
df <- iris
encoded <- j_encode(df, json = TRUE)

msantelices/json64 documentation built on Nov. 19, 2019, 11:55 p.m.