| Operators |
json_pointer_tuple — Uses a JSON Pointer to parse a value or an array of values from a JSON string.
json_pointer_tuple uses a JSON Pointer to parse a value or an array of values from a JSON string. The operator can be used as shortcut for the combination of the operators json_pointer and json_get_tuple.
Directly supported data types are:
Integers will be returned as integers (LONG_PAR / H_TYPE_INT) in the HALCON tuple.
Floating point numbers will be returned as Real numbers (DOUBLE_PAR / H_TYPE_REAL) in the HALCON tuple.
Strings will be returned as strings (STRING_PAR / H_TYPE_STRING) in the HALCON tuple.
Boolean values will be returned as integers (LONG_PAR / H_TYPE_INT) in the HALCON tuple. true will be mapped to 1, false will be mapped to 0.
Null will be returned as integer (LONG_PAR / H_TYPE_INT) with value 0 in the HALCON tuple.
If the JSON representation of the target of the pointer is a JSON object, the error 13003 (json_err_type_error) will be returned. In this case a combination of json_pointer, json_object_keys, and json_at should be used to iterate over the JSON object.
If the JSON representation of the target of the pointer is 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, the error 13003 (json_err_type_error) will be returned. In this case a combination of json_pointer, json_array_size, and json_at should be used to iterate over the JSON array.
Find more information about the JSON extension package in the introduction to this chapter.
JSON string
JSON Pointer
value
Foundation
| Operators |