implement #9 support returning the results of the search in the JSON