ClassesClassesClassesClasses | | | | Operators

json_pointerjson_pointerJsonPointerjson_pointerJsonPointerJsonPointer (Operator)

Name

json_pointerjson_pointerJsonPointerjson_pointerJsonPointerJsonPointer — Uses a JSON Pointer to extract a value from a JSON string.

Signature

json_pointer( : : Json, Pointer : JsonValue)

Herror json_pointer(const char* Json, const char* Pointer, char* JsonValue)

Herror T_json_pointer(const Htuple Json, const Htuple Pointer, Htuple* JsonValue)

Herror json_pointer(const HTuple& Json, const HTuple& Pointer, char* JsonValue)

Herror json_pointer(const HTuple& Json, const HTuple& Pointer, HTuple* JsonValue)

void JsonPointer(const HTuple& Json, const HTuple& Pointer, HTuple* JsonValue)

void HJsonX.JsonPointer(
[in] VARIANT Json, [in] VARIANT Pointer, [out] VARIANT* JsonValue)

static void HJson.JsonPointer(HTuple json, HTuple pointer, out HTuple jsonValue)

Description

json_pointerjson_pointerJsonPointerjson_pointerJsonPointerJsonPointer uses a JSON Pointer to extract a value from a JSON string.

Further information about JSON pointers are available in the document RFC 6901 / JavaScript Object Notation (JSON) Pointer.

In contrast to queries with XPath as known from XML documents JSON pointers are restricted but also easy to use.

This example JSON data:


{
  "key1": "value1",
  "key2": {
      "c": 42,
      "b": [
          43,
          44
      ]
  }
}

can be accessed with JSON pointers as follows:

/key1 -> 'value1'
/key2/b/0 -> 43
/key2/c -> 42

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

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

JSON Pointer

JsonValueJsonValueJsonValueJsonValueJsonValuejsonValue (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

Module

Foundation


ClassesClassesClassesClasses | | | | Operators