adding in code to return results in a json format, which should be parseable by android