title: Compare JSONPath value with flowVars value in Mule ESB
body: <p>I need to compare username from JSON below to a flowVars in Mule ESB 3.8.3</p>
  
  <pre><code>{"id":"users_0001","username":"0001","firstName":"AB","lastName":"C","email":"abc@abc.com","enabled":true}
  </code></pre>
  
  <p>using this expression in the choice operator</p>
  
  <pre><code>&lt;choice doc:name="Choice"&gt;
      &lt;when expression="#[json:[0]/username != flowVars.username]"&gt;
          &lt;flow-ref name="put account" doc:name="put account"/&gt;
      &lt;/when&gt;
      &lt;otherwise&gt;
          &lt;flow-ref name="do nothing" doc:name="do nothing"/&gt;
      &lt;/otherwise&gt;
   &lt;/choice&gt;
  </code></pre>
  
  <p>During debugging, I can see both json:[0]/username &amp; flowVars.username are returning same value, but why when compare both of them it always return false?</p>
  
  <p>Here's the result when I evaluate them</p>
  
  <pre><code>flowVars.username == "0001", returns true
  flowVars.username == '0001', returns true
  flowVars.username == 0001, returns true
  json:[0]/username = 0001, returns true
  json:[0]/username = "0001", returns false
  json:[0]/username = '0001', returns false
  json:[0]/username != flowVars.username, returns true
  json:[0]/username = flowVars.username, returns false
  </code></pre>