Skip to content

Commit 9e8cedc

Browse files
author
Michael Brewer
committed
feat(data-classes): use decoded_body for json_body
1 parent cf001a6 commit 9e8cedc

File tree

1 file changed

+1
-1
lines changed
  • aws_lambda_powertools/utilities/data_classes

1 file changed

+1
-1
lines changed

aws_lambda_powertools/utilities/data_classes/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def body(self) -> Optional[str]:
6565
@property
6666
def json_body(self) -> Any:
6767
"""Parses the submitted body as json"""
68-
return json.loads(self["body"])
68+
return json.loads(self.decoded_body)
6969

7070
@property
7171
def decoded_body(self) -> str:

0 commit comments

Comments
 (0)