Create the syntax to correctly define an JSON array Attribute path in RSA Web Threat Detection
Originally Published: 2017-05-16
Article Number
Applies To
RSA Product/Service Type: Mitigator
RSA Version/Condition: 5.x, 6.x
Issue
Example request - A Customer desired to create an attribute from a JSON element, which has up to eight sets in an array, that would likely be used to trigger a rule.
Tasks
2. Make sure a JSON selector is configured in the universal_conf.py.
3. Obtain the sample JSON data and place in a JSON parser to verify valid formatting.
4. Create a sample of JSON data to send through for testing. (This could be sent as a curl expression.)
5. Create the JSON Attribute and add the path statement to the 'name'.
6. Test by looking for the Attribute to appear in the Transaction viewer.
Resolution
//element/item[n]/element name
Note:
- arrays are 0 based, so element set 0, 1, 2, etc.
- "item" is a virtual object that defines the array and element in array that needs to be selected
Given an example JSON array:
{"CommonData":{"AppName":"MYAPP"},"AccountNumber":"abcdefgh012","AuthorizedUser":[{"LastName":"Smith","FirstName":"Andrew","MiddleInitial":"D","NameSuffix":""},{"LastName":"Jones","FirstName":"Samuel","MiddleInitial":"A","NameSuffix":""},{"LastName":"Truman","FirstName":"Donald","MiddleInitial":"J","NameSuffix":"Jr"}],"switch":"on"}
To select the MiddleInitial of the 3rd element of the array, you would create the name syntax as follows:
//AuthorizedUser/item[2]/MiddleInitial
That should return the element 'J' if created correctly.
Related Articles
Generic REST Collector fails with 'com.aveksa.client.genericrest.GenericRestException: UNEVEN_JSON_PATH_CONFIGURATION' in … 275Number of Views Handling license issues for RSA Web Threat Detection on RSA Link 24Number of Views Change hostnames on a deployed production environment in RSA Web Threat Detection 32Number of Views user/guid mapping in RSA Web Threat Detection 45Number of Views How to download RSA Web Threat Detection patches and version upgrades on RSA Link 46Number of Views
Trending Articles
Downloading RSA Authentication Manager license files or RSA Software token seed records RSA MFA Agent 2.3.6 for Microsoft Windows Installation and Administration Guide Quick Setup Guide - Passwordless Authentication in Windows MFA Agent for Active Directory Mandatory Certificate Upgrade Required by 6th October 2025 for RSA MFA Agent for PAM, RSA MFA Agent for Apache, and Third … RSA Authentication Manager 8.9 Release Notes (January 2026)
Don't see what you're looking for?