add convert_xform_to_json and expose this intermediate step