%dw 2.0
import * from dw::core::Strings
output application/json
---
{ balance: ("\$234" mapString if (isNumeric($)) "~" else $) }
You're viewing an older version of the documentation. You can switch to the latest version or use the version selector in the left navigation.