Forum Discussion

KevinFord's avatar
KevinFord
New Contributor
2 years ago

Convert an Array to an Object

I need to convert an array to an object.  this is my array:

[
  {
    "totalMatchingRows": 2,
    "pageCount": 1,
    "pageSize": 1000,
    "pageIndex": null,
    "rowsInPage": 2
  }
]
 
I need to convert it to:
{
  "totalMatchingRows": 2,
  "pageCount": 1,
  "pageSize": 1000,
  "pageIndex": null,
  "rowsInPage": 2
}