Version: 1.0.0
Category: Process
Extended Category: JSON
Action Package: Standard Actions
Description
Validate session attribute value for being valid JSON.
Supports SESSION and GLOBAL parameters.
Parameter | Description | Example |
Source Attribute | The session attribute containing the JSON value | source |
Result Attribute | The session attribute to store the validation result (Valid JSON or Invalid JSON) | result |
The value in Result Attribute will either be Valid JSON if the value is valid JSON or Invalid JSON if it is not valid JSON.
Use Cases
Example 1: Validate JSON with valid JSON
Parameter | Value |
Source Attribute | source |
Result Attribute | result |
The session objects (represented as JSON) {“source”:”{“id”: 1}”} will after execution look like this:
{"source":"{"id": 1}","result":"Valid JSON"}
Example 2: Validate JSON with invalid JSON
The session objects (represented as JSON) {“source”:”{“id”}”} will after execution look like this:
{"source":"{"id"}","result":"Invalid JSON"}
DISCLAIMER
Information provided in this document is for your information only. PhenixID makes no explicit or implied claims to the validity of this information. Any trademarks referenced in this document are the property of their respective owners.The origin of this information may be internal or external to PhenixID. PhenixID makes all reasonable efforts to verify this information.
PhenixID - support.phenixid.se