add spec for root element check and array in json response