I have an array of objects like this one:
[
{
"id": 192,
"name": "Complete name",
"username": "nsurname",
"state": "active",
"created_at": "2016-05-30T07:09:40.981Z",
"organization": "",
"last_sign_in_at": "2018-10-19T12:07:50.679Z",
"confirmed_at": "2016-05-30T07:09:40.982Z",
"last_activity_on": "2018-10-15",
"email": "mail@myorganization.com",
"current_sign_in_at": "2018-10-23T11:41:27.880Z",
"identities": [
{
"provider": "ldapmain",
"extern_uid": "user distinguished name"
}
],
"can_create_group": true,
"can_create_project": false
}
]
What I want is extract only a subset of attributes and get something like this:
[
{
"id" : 192,
"name" : "complete name",
"username" : "uname",
"email" : "mail@myorganization.com",
"extern_uid": "user distinguished name"
}
]
Based on this answer, I successfully got id, name, username and email attributes with this expression using Jayway JsonPath Evaluator at http://jsonpath.herokuapp.com/
$..['id', 'name', 'username', 'email']
But how can I get an attribute of different level? extern_uid