Cleans up output.
Adds url support to json output.