Import: json
The json import enables a Sentinel policy to parse and access a JSON document.
json.unmarshal(obj)
Unmarshals the JSON object obj
into a native Sentinel structure.
All native JSON types can be represented perfectly as Sentinel native types.
json.marshal(obj)
Marshals the Sentinel object obj
into a JSON object encoded as a string.
Functions and undefined
cannot be natively encoded as JSON. If values of
either type are found in the structure, this will return undefined.