codingo / VHostScan

A virtual host scanner that performs reverse lookups, can be used with pivot tools, detect catch-all scenarios, work around wildcards, aliases and dynamic default pages.
GNU General Public License v3.0
1.19k stars 231 forks source link

Fix formatting on Json Output #54

Closed codingo closed 6 years ago

codingo commented 6 years ago

We now have working json output but it's all on one line. I resolved this in a prior project (https://github.com/codingo/Ransomware-Json-Dataset) however I think it was a different library, simplejson. It may be solvable in the current implementation without adding new dependencies (current implementation is quite clean and shouldn't be rewritten). Merits investigation to see if cleanly formatted json can be outputted without a rewrite..

schedutron commented 6 years ago

Can I work on this?

codingo commented 6 years ago

Sure thing @schedutron !

xuvez commented 6 years ago

Hi @schedutron check this: https://docs.python.org/2/library/json.html#basic-usage At the "indent" parameter