parse results to JSON, output to HTML