ClassesClassesClassesClasses | | | | Operators

json_array_sizejson_array_sizeJsonArraySizejson_array_sizeJsonArraySizeJsonArraySize (Operator)

Name

json_array_sizejson_array_sizeJsonArraySizejson_array_sizeJsonArraySizeJsonArraySize — Returns the size/length of a JSON array.

Signature

json_array_size( : : Json : Size)

Herror json_array_size(const char* Json, Hlong* Size)

Herror T_json_array_size(const Htuple Json, Htuple* Size)

Herror json_array_size(const HTuple& Json, Hlong* Size)

void JsonArraySize(const HTuple& Json, HTuple* Size)

void HJsonX.JsonArraySize(
[in] VARIANT Json, [out] VARIANT* Size)

static void HJson.JsonArraySize(HTuple json, out HTuple size)

Description

json_array_sizejson_array_sizeJsonArraySizejson_array_sizeJsonArraySizeJsonArraySize returns the size (length) of a JSON array in JsonJsonJsonJsonJsonjson. If the string in JsonJsonJsonJsonJsonjson does not represent a JSON array the error 13003 (json_err_type_error) is returned.

Find more information about the JSON extension package in the introduction to this chapter.

Parallelization

Parameters

JsonJsonJsonJsonJsonjson (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

JSON string

SizeSizeSizeSizeSizesize (output_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

size of a Json array

Possible Predecessors

json_is_arrayjson_is_arrayJsonIsArrayjson_is_arrayJsonIsArrayJsonIsArray

Module

Foundation


ClassesClassesClassesClasses | | | | Operators