JSONGETARRAYSTART Function

目的

Checks if the first character after any whitespace in a piece of JSON text is an opening square bracket.

構文

JSONGETARRAYSTART(p,l)

Parameters

p
A pointer specifying the address of the JSON text buffer.
l
Specifies the length in bytes of the JSON text buffer.

Description

JSONGETARRAYSTART reads up to and including the first non-whitespace character in the JSON text buffer to see if there is a opening bracket ([) character.If there is, JSONGETARRAYEND returns the position of this character; otherwise a zero is returned indicating that it is not found.

Assuming buffer (pointed to by p) contains 4 blanks followed by[ {"Last": "Presley"},Bytes = jsongetarraystart(p,l); will return 5 (position of [).

制限事項

なし。