Something is making my head in,
I have an API that returns me JSON, the JSON can have a slight different format depending on the endpoint is sending it. Example.
{
"PayLoad": {
"Method1": [
{
"TimeStamp": "2020-06-03T13:25:25",
"Id": 4235411
}
],
"Timestamp": "2020-06-03T13:26:57.1316371+00:00",
"Signature": "113af0a218b0497ff6f160fcd1b13a7b",
"Hookid": "526ed776-2l71-4c2a-b11f-de8cb2057b1c"
}
}
So what I am looking for is to have returned
Method : Method1
TimeStamp: 2020-06-03T13:25:25
id: 4235411
Signature: 113af0a218b0497ff6f160fcd1b13a7b
HookID: 526ed776-2l71-4c2a-b11f-de8cb2057b1c
Can someone please give me an hint?
I've tried a bunch of code examples I've seen, and can't make it work.