Previous Topic Next topic Print topic


JSONGETCOLON Function

Purpose

Checks if the first character after any whitespace in a piece of JSON text is a colon.

Syntax

JSONGETCOLON(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

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

Examples

Assuming buffer (pointed to by p) contains 2 blanks followed by :"Presley"}, Bytes = jsongetcolon(p,l); will return 3 (position of :).

Restrictions

None.

Previous Topic Next topic Print topic