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

Export ServerScanResult to json via python API. #571

Closed
r4t31 opened this issue Jun 11, 2022 · 2 comments
Closed

Export ServerScanResult to json via python API. #571

r4t31 opened this issue Jun 11, 2022 · 2 comments

Comments

@r4t31
Copy link

r4t31 commented Jun 11, 2022

Is your feature request related to a problem? Please describe.
Is there any way to easily export the python ServerScanResult object to json?

Describe the solution you'd like
Some function for ServerScanResult object like ServerScanResult.to_json("./path_to_output.json")

Describe alternatives you've considered
Probably possible to use some json serializer for this purpose.

@r4t31 r4t31 changed the title Export ServerScanRequest to json via python API. Export ServerScanResult to json via python API. Jun 11, 2022
@nabla-c0d3
Copy link
Owner

Hello,
Yes, it is visible here for example:

json_output = SslyzeOutputAsJson(

result_as_json = ServerScanResultAsJson.from_orm(result)
result_as_json_str =  result_as_json.json()  # <- String containing the JSON result

@nabla-c0d3
Copy link
Owner

I added documentation on how to do this as part of v5.0.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants