FindJSONValue2 (FUN)ΒΆ
FUNCTION FindJSONValue2 : DINT
Finds the corresponding value of a key in a JSON String. Objects and arrays are NOT supported.
- InOut:
Scope
Name
Type
Comment
Return
FindJSONValue2
DINT
Input
pwsIn
POINTER TO WORD
Pointer to JSON wstring
udiSizeIn
UDINT
Size of pwsIn
pwsKey
POINTER TO WORD
Pointer to key wstring
diSearchStartPos
DINT
Startposition of the search
pwsValue
POINTER TO WSTRING
Pointer to the result value
udiValueSize
UDINT
Size of pwsValue
Output
eError