add generalised jsonQuery and searchRenderer