Magnetic behavior of a 1D molecular-oxygen system included within a transformable single-crystal adsorbent.