FindJSONValue (FUN)ΒΆ

FUNCTION FindJSONValue : DINT

Finds the corresponding value of a key in a JSON String. Objects and arrays are NOT supported.

InOut:

Scope

Name

Type

Comment

Return

FindJSONValue

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

Inout

wsValue

WSTRING(255)

Value