How to do it...

  1. Serialize the transforms into a human-readable format. We can transform to JSON using TransformProcess as follows:
String serializedTransformString = transformProcess.toJson()

We can transform to YAML using TransformProcess as follows:

String serializedTransformString = transformProcess.toYaml()
  1. Deserialize the transforms for JSON to TransformProcess as follows:
TransformProcess tp = TransformProcess.fromJson(serializedTransformString)

You can do the same for YAML to TransformProcess as follows:

TransformProcess tp = TransformProcess.fromYaml(serializedTransformString)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset