title: Parsing JSON in Mule?
body: <p>I'm trying to read a value inside a JSON string.</p>
  
  <p>The payload from getValue is as simple as :
  { 'result': 'new_value' }</p>
  
  <p>When I try to log the result it prints null</p>
  
  <p>My code is:</p>
  
  <pre><code>&lt;enricher target="#[flowVars.new_value]" source="#[json:result]"&gt;
  
    &lt;flow-ref name="getValue" /&gt;
  
  &lt;/enricher&gt;
  
    &lt;logger doc:name="Logger" level="INFO"
      message="new value #[flowVars.new_value]" /&gt;
  
   &lt;flow name="getValue"&gt;
  
       &lt;http:request config-ref="http-request-tts" path="get_value" method="POST"&gt;
        &lt;/http:request&gt;
  
      &lt;!-- Here the payload is of type org.glassfish.grizzly.utils.BufferInputStream --&gt;
  
       &lt;object-to-string-transformer/&gt;
      &lt;json:object-to-json-transformer /&gt;
  
    &lt;/flow&gt;
  </code></pre>