Array element mapping - Perceptive Content Server Install Guide - Foundation 24.1 - Foundation 24.1 - Ready - Perceptive Content - external - Perceptive-Content/Perceptive-Content-Server-Install-Guide/Foundation-24.1/Perceptive-Content-Server-Install-Guide/Appendix-C-JSON-Attribute-Paths/Array-element-mapping - 2024-04-02

Perceptive Content Server Install Guide

Platform
Perceptive Content
Product
Perceptive Content Server Install Guide
Release
Foundation 24.1
License
{
"sub" : "263DFEBC-EB43-46E7-A4D7-398C5D161190",
"user" : ["hylanduser", "hylanduser@onbase.net"]
}

For JSON array elements, inner values are accessed through square brackets. In the above example, the user.claim setting would be user[0].

{
"sub" : "263DFEBC-EB43-46E7-A4D7-398C5D161190",
"user" : [
{
"type" : "name",
"value" : "hylanduser"
},
{
"type" : "email",
"value" : "hylanduser@onbase.net"
}
]
}

For JSON arrays of objects, additional logic may be used for equality using the operator eq inside the square brackets. The left hand side of the eq operator must be a JSON property name, and the right hand side must be a value to compare against the property's value. The eq operator supports numeric, boolean, and string equality. JSON property names must be escaped if they contain whitespace (" "), quotation marks ("), or apostrophes ('). JSON string values must be escaped if they contain quotation marks ("). In the above example, the sso.openid.profile.<profileName>.user.claim setting would be user[type eq "name"].value.