1 Answer
- Newest
- Most votes
- Most comments
0
Solved it. The message extracted from:
message = payload["logEvents"][0]["message"]
is actually a string. I did not notice this at first sight. If it contains a json you must load it before dump again.
answered a year ago
Relevant content
- asked 3 years ago
- asked a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
Why are we using payload["logEvents"][0]["message"]? Are we only extracting the first message?