selecting contained resources into JSON views