Dataweave Always output JSON number with two decimal places
问题 I've got the following number coming through via xml in Dataweave. <b:AmountValue>180.90</b:AmountValue> Using Dataweave I am trying to output a corresponding json number with two decimal places (to represent currency). Here is what my Dataweave expression looks like... amount: $.AmountValue as :number as :string {format: ".00"} as :number The output json is losing the trailing zero. i.e. "amount":180.9 How can I change my Dataweave expression to always have two decimal places? Or perhaps I'm