Ritu

Ritu

  • 1.4k
  • 348
  • 43.4k

remove outer array from JSON

Aug 21 2023 9:46 AM

Hi

I want to remove outer json array in c#. please help

Input JSON

[{

"result1": [{

"number": "string",

"id": "string"

}]

},

{

"result2": [{

"number": "string",

"id": "string"

}]

}]

 

[Output JSON]

 

{

"result1": [

{

"number": "string",

"id": "string"

}

],

"result2": [

{

"number": "string",

"id": "string"

}

]

}


Answers (4)