%dw 2.0
output application/json
var filePath = "classpath://org/mule/weave/v2/engine/read-function/include.dwl"
---
{
  a: read(in0.root.json, "application/json"),
  b: read(in0.root.json, "application/json").foo,
  c: read(in0.root.xml, "application/xml"),
  d: read(in0.root.xml, "application/xml").foo,
  e: read(in0.root.csv, "application/csv").name,
  f: read(in0.root.dw, "application/dw").myFunction("something"),
  g: readUrl(filePath, "application/dw").myFunction("something2"),
  //h: readUrl("http://jsonplaceholder.typicode.com/posts/1", "application/json") is Object

}
