JSON_CUTIL (RPGLE)
JSON : Checker UtilitiesMore ....
Procedures [top]
| json_validate |
exported
Validate JSON string |
| json_validateFile |
exported
Validate JSON file |
Copybooks [top]
| CEEAPI_H |
|
| JSON_CHK_H |
|
| JSON_CUT_H |
|
| JSON_INT_H |
|
| ICONV_H |
|
| IFSIO_H |
|
Detailed Description [top]
Utility module for validating string for the JSON syntax. The strings are converted from the passed or Job ccsid to ASCII (ccsid 819). Comments before, inline and after the JSON string are not supported.Procedure Documentation [top]
json_validate [top]
Validates the passed JSON string.
- Parameters:
-
Character (65535) — JSON string Numeric (Integer) (10) — CCSID from the source string (default: 0 = Job CCSID)
- Return value:
-
Boolean — *on = valid JSON string
*off = invalid JSON string
- Exported.
- Author:
- Mihael Schmidt
json_validateFile [top]
Validates the JSON string in the passed file. The file should only contain the JSON string. Comments are not supported.
- Parameters:
-
Character (65535) — IFS file path Numeric (Integer) (10) — CCSID from the source string (default: 0 = Job CCSID)
- Return value:
-
Boolean — *on = valid JSON string
*off = invalid JSON string
- Exported.
- Author:
- Mihael Schmidt