ClassesClassesClassesClasses | | | | Operators

json_atjson_atJsonAtjson_atJsonAtJsonAt (Operator)

Name

json_atjson_atJsonAtjson_atJsonAtJsonAt — Extracts a JSON object at a given position from a JSON object or JSON array.

Signature

json_at( : : Json, Key : JsonValue)

Herror json_at(const char* Json, const char* Key, char* JsonValue)

Herror T_json_at(const Htuple Json, const Htuple Key, Htuple* JsonValue)

Herror json_at(const HTuple& Json, const HTuple& Key, char* JsonValue)

void JsonAt(const HTuple& Json, const HTuple& Key, HTuple* JsonValue)

void HJsonX.JsonAt(
[in] VARIANT Json, [in] VARIANT Key, [out] VARIANT* JsonValue)

static void HJson.JsonAt(HTuple json, HTuple key, out HTuple jsonValue)

Description

json_atjson_atJsonAtjson_atJsonAtJsonAt extracts a JSON object at a given position (KeyKeyKeyKeyKeykey) from a JSON object or JSON array.

For JSON objects, the position is passed as a string (key) in KeyKeyKeyKeyKeykey.

For JSON arrays, the position is passed as an integer (index) in KeyKeyKeyKeyKeykey.

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

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

key or zero-based index

JsonValueJsonValueJsonValueJsonValueJsonValuejsonValue (output_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

value

Possible Successors

json_get_tuplejson_get_tupleJsonGetTuplejson_get_tupleJsonGetTupleJsonGetTuple

See also

json_at_tuplejson_at_tupleJsonAtTuplejson_at_tupleJsonAtTupleJsonAtTuple

Module

Foundation


ClassesClassesClassesClasses | | | | Operators