Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing the "TypeError('the JSON object must be str, bytes or bytearray, not dict')" after a json_fix is successful #259

Conversation

fabricehong
Copy link
Contributor

The fix_json error is expected to return str.
In case of success, the function does a json.loads() and returns a JSON, which cause a "TypeError('the JSON object must be str, bytes or bytearray, not dict')" in the caller

… bytes or bytearray, not dict')" after a json_fix is successful
Copy link

@jmagly jmagly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is working properly now.

@Torantulino Torantulino closed this Apr 6, 2023
@Torantulino Torantulino reopened this Apr 6, 2023
@Torantulino Torantulino merged commit 6f3bfe7 into Significant-Gravitas:master Apr 6, 2023
waynehamadi added a commit that referenced this pull request Sep 5, 2023
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants