Question
Srinsoft Technology
IN
Last activity: 2 Apr 2024 7:56 EDT
How to Map JSON response in excel (Having Pages and list)
Hi All,
I have requirement to download excel by following below structure, it should follow JSON response.
JSON Response like:
{
"Response": "",
"Page1": {
"Property": "X",
},
"Page2": {
"Property": "Y",
},
"Page3": {
"Property": "Z",
},
"PageList": [{
"Text": "1",
"Text": "2",
}
],
}
Getting results like below in excel:
| Response | |||
| Page1 | Page2 | Page3 | PageList |
| X | Y | Z | 1 |
| 2 |
If we are having more then one Array getting below.
Hi All,
I have requirement to download excel by following below structure, it should follow JSON response.
JSON Response like:
{
"Response": "",
"Page1": {
"Property": "X",
},
"Page2": {
"Property": "Y",
},
"Page3": {
"Property": "Z",
},
"PageList": [{
"Text": "1",
"Text": "2",
}
],
}
Getting results like below in excel:
| Response | |||
| Page1 | Page2 | Page3 | PageList |
| X | Y | Z | 1 |
| 2 |
If we are having more then one Array getting below.
| Response | |||
| Page1 | Page2 | Page3 | PageList |
| X | Y | Z | 1 |
| X | Y | Z | 2 |
| 1 | |||
| 2 |
Expecting results like below format:
| Response | |||
| Page1 | Page2 | Page3 | PageList |
| X | Y | Z | 1 |
| 2 | |||
| X | Y | Z | 1 |
| 2 |
Could you please let me know how can we achive this ?