Below the snippet is my Input. (Array of objects)
[
{"propName":"Prop1","propValue": "Prop1_Value"},
{"propName":"Prop2","propValue": "Prop2_Value"}
]
The final result should be like this object. [Output] (A single object with multiple properties)
{
"Prop1":"Prop1_Value",
"Prop2":"Prop2_Value"
}
I am able to convert the input object to strings(a string of properties) like below. But I don't know how to proceed further.
"{\"Prop1\":\"Prop1_Value\",\"Prop2\":\"Prop2_Value\"}"
"{Prop1:Prop1_Value,Prop2:Prop2_Value}"
Here the restriction is, I should not use any variable to iterate the input.
Can someone guide me to get an output for this scenario?