Skip to content

Commit

Permalink
fix: avoid stringifying json response (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
suhussai committed Jul 8, 2024
1 parent 9f4c2df commit 179e999
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# SPDX-License-Identifier: Apache-2.0

import boto3
import json

client = boto3.client('cognito-idp')

Expand Down Expand Up @@ -169,7 +168,7 @@ def __init__(self, user_name=None, user_role=None,
self.modified = modified

def serialize(self):
return json.dumps(self.__dict__, default=str)
return self.__dict__


class UserInfoList:
Expand All @@ -181,4 +180,4 @@ def add_user(self, user):

def serialize(self):
user_dicts = [user.__dict__ for user in self.users]
return json.dumps(user_dicts, default=str)
return user_dicts

0 comments on commit 179e999

Please sign in to comment.