Added JSON reporting

Just enable lines 123-125 and set server_addr to be the server.
Should work.