MuleSoft Tips and Tricks

Useful Logging Addition

On all projects at the outset, you should add these lines to your log4j2.xml config to see the http traffic:

<AsyncLogger name="org.mule.module.http.internal.HttpMessageLogger" level="DEBUG" />

<AsyncLogger name="com.ning.http" level="DEBUG" />

JSON usage

Not documented too well, but you can reference JSON response data with this format:

{ 
  "summary" : "#[json:currently/summary]",
  "icon" : "#[json:currently/icon]",
  "temperature" : #[json:currently/apparentTemperature],
  "stormDistance" : #[json:currently/nearestStormDistance]
}