Allow json based search on toplevel and in repo if application/json is requested