add visibilityJson to the response