Previous Topic Next topic Print topic


JSONPUTOBJECTSTART Function

Purpose

Adds an opening brace to a JSON text.

Syntax

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

JSONPUTOBJECTSTART writes an opening brace ({) to the first position in the buffer if the length of the buffer is greater than 0. If successful, it returns 1; otherwise zero is returned indicating there was no space in the buffer.

Examples

Assuming buffer length is at least 1, Bytes = jsonputobjectstart(p,l); will cause the buffer to contain an opening brace ({) in position 1.

Restrictions

None.

Previous Topic Next topic Print topic