Serialize vctrs objects to JSON
