Finished json handling for product and category searches.