Ritu

Ritu

  • 1.4k
  • 347
  • 42.6k

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)