Implements JSON search API and test coverage