Added JSON API for search