refactoring for json query execution of sharedhashbuild