Learn R Programming

FaaSr (version 1.4.4)

faasr_parse: faasr_parse

Description

This function uses JSON parsing and validation to ensure the Payload is compliant Two checks are made here: 1) is it a valid JSON format? and 2) does it conform to the FaaSr JSON schema? If both checks pass, return a list with all the parsed key/value pairs Otherwise, abort

Usage

faasr_parse(faasr_payload)

Value

faasr list with parsed and validated Payload

Arguments

faasr_payload

JSON Payload provided upon Action invocation by the FaaS platform

Examples

Run this code
# This function can be run only in the container
if (interactive()){
faasr <- faasr_parse(faasr_payload)
}

Run the code above in your browser using DataLab