I'm new to Python, but as much as I search - I don't find a "jsonfiy" method for printing an error to the logs.
the way I'm printing today:
except Exception as e:
print(type(e))
print(e)
print(traceback.format_exc())
This way I get all needed data from the exception, but I must represent it in a JSON format.
Any help will be appreciated!