Getting started Community Training Tutorials Documentation APIs, AI & Tools
%dw 2.0
import * from dw::module::Mime
output application/json
---
toString({'type': "application", subtype: "json", parameters: {}})
Transforms a MimeType value to a string representation.
Introduced in DataWeave version 2.7.0.
This example transforms a MimeType value without parameters to a string representation.