jsonBegin

Initializes a new JSON object and returns the opening brace. Takes no parameters. Returns string "{" via ReturnString helper.

JSON

Parameters & Returns

Parameters

This function takes no parameters.

Returns

String

Quick Summary

Initializes a new JSON object and returns the opening brace. Takes no parameters. Returns string "{" via ReturnString helper.

Technical Exegesis...

Initializes a new JSON object and returns the opening brace. Returns string "{" via ReturnString helper. Stored in g_jsonStringPool rotating buffer (100 slots).

This function begins JSON serialization. Returns opening brace for JSON object. Use as starting point for building JSON documents. ReturnString stores result in global pool indexed by g_jsonStringPoolIndex (rotates 0-99 to prevent memory leaks). Common pattern: json = jsonBegin(), json = jsonWriteInt(json, "key", value), json = jsonEnd(json).

Example

Example.bam
; No example implemented yet