validateInputJson: Validate input JSON string

Description Usage Arguments Value

Description

This function validates JSON in 2 steps: 1) Checks if all required keys are present 2) Checks if all values are not NULL If any of above conditions is not fulfilled, an error is throwed

Usage

1
validateInputJson(x, requiredKeys = c())

Arguments

x

JSON character string

requiredKeys

character vector, names of keys that are required in x

Value

R list, converted from JSON


mjakubczak/spicyScript documentation built on May 24, 2019, 8:54 a.m.