add json query for room