function
First seen , last seen .
validjson
See also: validjson (function-call)
A built-in CFEngine function in the data category that returns a class. validjson is called 4 times from 3 bundles and bodies in 2 policy files, on 100 hosts in your infrastructure.
- Signature
validjson(string, [option], ...)- Parameters
stringString to validate as JSON (.*)optionEnable more strict validation, requiring the result to be a valid data container, matching the requirements of parsejson(). (true,false,yes,no,on,off)
Variadic: at least 1 and at most 2 arguments.- Returns
context- Category
- data