JsMakeString Method (Client)
PLB Web Only, 9.8
The JsMakeString method converts a PLB DIM data string into a properly formatted JSON string including UTF8 conversion and data escaping. The method uses the following format:
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A CLIENT object.
return
Optional. A Character String Variable that returns the result as a properly formatted json string.
inputstr
Required. A Character String Variable or literal that contains the input PLB string to be converted into a JSON string.
Flags Affected: EOS, OVER, ZERO
Note the following:
The EOS flag is set TRUE if the return variable is too small to receive the JSON string result without being truncated.
The ZERO flag is always cleared.
The OVER flag is always cleared.
The {return} string is always generated with a leading and trailing double quote character (i.e. '"').
Any embedded '\' or '"' characters in the {inputstr} data is escaped with a leading '\' character.
Any characters in the {inputstr} with a character value than 0x7F are converted to an UTF8 sequence.
Any characters in the {inputstr} with a value less than 0x20 are converted to a 0x20 value except for the following characters:
0x08 - '\b'
0x0A - '\n'
0x0D - '\r'
Example
See Also: CLIENT, Client Methods, Method Syntax
![]() |