respondJSON: Respond to HTTP request using JSON

Description Usage Arguments Examples

Description

Responds to an HTTP request using JSON formatted data

Usage

1
respondJSON(content)

Arguments

content

a named list, which will be serialized to JSON using RJSONIO

Examples

1
2
data <- list(foo="bar",baz=1:5)
respondJSON(data)

jweile/cgir documentation built on May 10, 2019, 10:02 a.m.