Skip to content

Commit

Permalink
feat: add Content.json
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Jan 7, 2025
1 parent 2167579 commit 9a7180c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mcpx/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ def text(self):
"""
return self.data.decode()

@property
def json(self):
"""
Get the result data as json
"""
return json.loads(self.text)

@property
def data(self):
"""
Expand Down

0 comments on commit 9a7180c

Please sign in to comment.