Now adds results to json array