In the following JSON, how can I use a regular expression to match the parent key named "Item of Equipment
", whose value is changing and unpredictable?
"type": "title"
Is unique to this node, as is presence of "title:"
.
AKA: "How can I match a parent value by using a child?
An alternative to find "Item of Equipment
" is to look for it in the property "name
", where it is duplicated, as a sibling of "type": "title
". It's the case that "type": "title"
always uniquely has a sibling of "name
"
..
"id": "Xkt@",
"name": "My Email",
"type": "email"
},
"Item of Equipment": {
"id": "title",
"title": {},
"name": "Item of Equipment",
"type": "title"
},
"My Date": {
"id": "nYcK",
"name": "My Date",
"type": "date",
..
I won't use a JSON parser, I won't have access. I am running this through the "Match" action of iOS Shortcuts.