JSON

JSON is the default format for reading/writing data to/from Flow, so requires no special customization.

Using jsonPath() references

It’s possible (but discouraged) to use by jsonPath("") references to declare a field:

model Person {
  firstName : FirstName by jsonPath("$.fName")
}