Clean up and start json output