Discussion:
xml to json to output
Pablo La Greca
2012-06-27 15:34:55 UTC
Permalink
Use the logger element.
<br /><br />
Use a logger element in your config after the object to json transformer:
<br /><br />
Since mule 3.3: <code>&lt;logger level=&quot;INFO&quot; message=&quot;#[payload]&quot;&#47;&gt;</code>
<br />
Before mule 3.3: <code>&lt;logger level=&quot;INFO&quot; message=&quot;#[payload:]&quot;&#47;&gt;</code>
<br /><br />
HTH, Pablo.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Thomas Mitchell
2012-06-27 15:56:20 UTC
Permalink
Beginner here trying to get to grips with Mule. I am wondering how I can get from XML to JSON and then display that in a browser to check it.
<br /><br />
At the moment I have a file endpoint pointing to a directory with sub-directories containing XML files. On first run a load of messages came up in the console about accessing the XML files so I'm assuming they have been accessed.
<br /><br />
I have an XML to Object controller attached to that and an Object to JSON controller off that. It seems to be running as I can see no error messages so my question is how do I go from here to seeing the contents in either a console or or in a web page?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...