I want to convert the given array
arr = ['abc', 'def', 'hij'];
into this object:
result = {
'key': 'abc',
'key': 'def',
'key': 'hij'
}
----EDIT----
I want this structure because there is no way around other than this to pass this as queryParams in my project