Add basic JSON search API support (#57).