ClassesClassesClassesClasses | | | | Operators

json_get_tuplejson_get_tupleJsonGetTuplejson_get_tupleJsonGetTupleJsonGetTuple (Operator)

Name

json_get_tuplejson_get_tupleJsonGetTuplejson_get_tupleJsonGetTupleJsonGetTuple — Parses a value or an array of values from a JSON string.

Signature

json_get_tuple( : : Json : Values)

Herror json_get_tuple(const char* Json, char* Values)

Herror T_json_get_tuple(const Htuple Json, Htuple* Values)

Herror json_get_tuple(const HTuple& Json, char* Values)

Herror json_get_tuple(const HTuple& Json, HTuple* Values)

void JsonGetTuple(const HTuple& Json, HTuple* Values)

void HJsonX.JsonGetTuple(
[in] VARIANT Json, [out] VARIANT* Values)

static void HJson.JsonGetTuple(HTuple json, out HTuple values)

Description

json_get_tuplejson_get_tupleJsonGetTuplejson_get_tupleJsonGetTupleJsonGetTuple parses a value or an array of values from a JSON string.

Directly supported data types are:

If the string in JsonJsonJsonJsonJsonjson represents a JSON object, an error will be returned. In this case a combination of json_object_keysjson_object_keysJsonObjectKeysjson_object_keysJsonObjectKeysJsonObjectKeys and json_atjson_atJsonAtjson_atJsonAtJsonAt should be used to iterate over the JSON object.

If the string in JsonJsonJsonJsonJsonjson represents a JSON array, a multi-value tuple will be returned. In an entry of the array is structured, i.e. the entry represents a JSON array or JSON object, an error will be returned. In this case a combination of json_array_sizejson_array_sizeJsonArraySizejson_array_sizeJsonArraySizeJsonArraySize and json_atjson_atJsonAtjson_atJsonAtJsonAt should be used to iterate over the JSON array.

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

ValuesValuesValuesValuesValuesvalues (output_control)  string(-array) HTupleHTupleHTupleVARIANTHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double) (BSTR / Hlong / double) (char* / Hlong / double)

value(s)

Module

Foundation


ClassesClassesClassesClasses | | | | Operators