%dw 2.0
import * from dw::module::Mime
output application/json
---
toString({'type': "application", subtype: "json", parameters: {}})
toString
toString(mimeType: MimeType): String
Transforms a MimeType
value to a string representation.
Introduced in DataWeave version 2.7.0.
Example
This example transforms a MimeType
value without parameters
to a string representation.