j_decode: Decoding Function

Description Usage Arguments Examples

Description

Used to decode a base64 string. By default the function expects an encoded json.

Usage

1
j_decode(str, json = TRUE)

Arguments

str

The string to be decoded.

json

Defaults to TRUE. If TRUE, the function expects str to be an encoded json and will return a data.frame or list, depending on JSON structure. If FALSE, the function will return an string.

Examples

1
2
3
4
5
6
7
8
9
# Decode an encoded string:

str <- "SGVsbG8gV29ybGQh"
j_decode(str, json = FALSE)

# Decode an encoded json:

encoded_json <- "W3sibXNnIjogIkhlbGxvIFdvcmxkISIsICJqc29uIjogdHJ1ZX1d"
j_decode(encoded_json)

json64 documentation built on June 3, 2019, 5:04 p.m.

Related to j_decode in json64...