title: WSO2 ESB 4.8 json native support - trying to manipulate json and log using mediator via Script mediator
body: <p>From WSO2 ESB 4.8 - json is supported natively, information can be found in WSO2 websit. Referring below blog w.r.t.json formatter &amp; builder</p>
  
  <p><a href="http://charithaka.blogspot.co.uk/2013/10/the-difference-between-json-streaming.html" rel="nofollow">http://charithaka.blogspot.co.uk/2013/10/the-difference-between-json-streaming.html</a></p>
  
  <p>My use-case is to use JSON format over HTTP/1.1 REST, main point to note here is:</p>
  
  <ul>
  <li>not to tranform the json data within ESB (keep the json format natively within ESB)</li>
  <li>manipulate the json using mediator in json format (mediator which support json natively - script/custom mediators)</li>
  </ul>
  
  <p>trying to use : </p>
  
  <pre><code>org.apache.axis2.json.JSONStreamBuilder
  org.apache.axis2.json.JSONStreamFormatter
  </code></pre>
  
  <p>as mentioned in Charitha blog. Now, I am not seeing json being converted to soap in the soap message (using Log Mediator).</p>
  
  <p>does that mean, WSO2 ESB 4.8 does not convert a json request to soap under the hood avoiding data loss for some data format (e.g., Array, etc.,  as mentioned in <a href="https://github.com/erny/jsonbuilderformatter" rel="nofollow">https://github.com/erny/jsonbuilderformatter</a>) </p>
  
  <p>Can anyone share me an example of logging / manipulating json message using org.apache.axis2.json.JSONStreamBuilder &amp; org.apache.axis2.json.JSONStreamFormatter (or) any other builder and formatter for json without converting into soap message in the message context.</p>