Producing JSON search results