ValidateJson()
validate a json string
ValidateJson( json=string, schema=string, throwonError=boolean );
Returns: Struct
| Argument | Description | Default |
|---|---|---|
|
json
string,
required
|
edit
String to validate Alias: str |
|
|
schema
string,
required
|
edit | |
|
throwonError
boolean,
optional
|
edit
throw an exception in case of an error, when false no exception is thrown, instead the errors are returned in an array of structs. |
false |
Examples
There are currently no examples for this function 39,529ms WARN No examples for function ValidateJsonSee also
- JSON
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)