query

fun query(jsonElement: JsonElement): NodeList(source)

6.4.1. Processing

In detail, the array is processed by the Wallet from left to right as follows: Select the root element of the Credential, i.e., the top-level JSON object.

Process the query of the claims path pointer array from left to right: If the component is a string, select the element in the respective key in the currently selected element(s). If any of the currently selected element(s) is not an object, abort processing and return an error. If the key does not exist in any element currently selected, remove that element from the selection.

If the component is null, select all elements of the currently selected array(s). If any of the currently selected element(s) is not an array, abort processing and return an error.If the component is a non-negative integer, select the element at the respective index in the currently selected array(s). If any of the currently selected element(s) is not an array, abort processing and return an error. If the index does not exist in a selected array, remove that array from the selection.If the set of elements currently selected is empty, abort processing and return an error.The result of the processing is the set of elements which is requested for presentation.