I have got a response after altering a list. My response looks something like this :
{
"response": [
{
"timestamp": "21:15-21:30",
"logs": [
{
"exception": "IllegalAgrumentsException",
"count": 1
}
]
},
{
"timestamp": "21:15-21:30",
"logs": [
{
"exception": "NullPointerException",
"count": 2
}
]
},..
I want the result to be something like this:-
"response": [
{
"timestamp": "21:15-21:30",
"logs": [
{
"exception": "IllegalAgrumentsException",
"count": 1
},
{
"exception": "NullPointerException",
"count": 2
} ]
}
How can I merge logs together like above in python?