I have an object that looks like this.
$test = {
"displayName": "Testname"
"userAge": 22
}
I have an array that looks like this.
$friendlyNames = ["Display name", "User age"]
The way this is set up the $friendlyNames array index will always match with the object property order. Is it possible to automatically replace this and end up with a object that looks like this?
$test = {
"Display name" = "Testname"
"User age" = 22
}