AFS Widgets use JSON to interact with AFS Query Manager, because web browsers can parse JSON very quickly.
To insert a JSONPath expression, proceed as described below
JSONPathExpression is the JSONPath expression that targets the property you want to read.
For more information, JSONPath syntax is described here: JSONPath.
The following example retrieves the reply URI:
Some reply properties, such as title and abstract, are not simple string attributes, but described in the KWIC format
This format is a list of entries that are a succession of matching and not-matching strings. These properties are often used in expressions and cannot be displayed with the jpath expression. That is why a specific expression enables to access to these properties by joining them and decorating matches with a specific CSS class. This specific syntax is the following:
This will join the different parts of the title and decorate them. This is an output example (assuming that the reply title is AFS Back Office and the search expression is Back Office):
AFS <span class="match">Back Office</span>
To write a JSONPath expression, it is necessary to know the AFS replies structure. See Dump expression for more information.
If namespaces are used in XPath queries, they must have been declared in the XML section of the global configuration. See XML Subobject for more information.