Writing JSON
The JSON datatype supports writing JSON to Strings or Writers.
Writing to a String:
import static io.openbpm.spin.Spin.JSON;
SpinJsonNode jsonNode = JSON("{\"customer\": \"Kermit\"}");
String json = jsonNode.toString();
Writing to a Writer
import static io.openbpm.spin.Spin.JSON;
SpinJsonNode jsonNode = JSON("{\"customer\": \"Kermit\"}");
StringWriter writer = jsonNode.writeToWriter(new StringWriter());
Документация создана на основе Camunda 7 Docs (Camunda, docs.camunda.org) и распространяется по лицензии Creative Commons Attribution-ShareAlike 3.0 Unported.