Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

JSON.CreateArrayRef

Creates empty array reference.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JSON 6.0 Yes Yes Yes Yes Yes

MBS( "JSON.CreateArrayRef" )

Parameters

none

Result

Returns reference number or error.

Description

Creates empty array reference.
Please use JSON.Release later to free the json object.
You can pass the reference number to all MBS JSON functions instead of JSON text.

Examples

Test array reference functions:

# create array reference
$ref = MBS( "JSON.CreateArrayRef" )
# add some numbers
$r = MBS( "JSON.AddNumberToArray"; $ref; 1; 2; 3 )
# add some texts
$r = MBS( "JSON.AddStringToArray"; $ref; "Hello"; "World" )
# get JSON text for this array:
$text = MBS( "JSON.Compact"; $ref)
# free memory
$r = MBS( "JSON.Release"; $ref )

See also

Example Databases


JSON.CreateArray   -   JSON.CreateBool

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins