Moved search implementation to JSON interface