mellio_to_json: Serialise a Mellio payload to JSON

View source: R/bridge-payload.R

mellio_to_jsonR Documentation

Serialise a Mellio payload to JSON

Description

Serialise a Mellio payload to JSON

Usage

mellio_to_json(payload, pretty = FALSE)

Arguments

payload

A mellio_payload object from mellio_payload().

pretty

Pretty-print with line breaks (default FALSE).

Value

A length-1 character vector containing the JSON.

See Also

mellio_payload() to build the payload, mellio_open() to send it directly to the Mellio web app.

Other R bridge: mellio_addin_send(), mellio_capture(), mellio_compare(), mellio_open(), mellio_payload(), print.mellio_payload()

Examples

p <- mellio_payload(t.test(extra ~ group, data = sleep))
cat(mellio_to_json(p, pretty = TRUE))

mellio documentation built on Aug. 30, 2026, 1:06 a.m.