title: JSON Encode specific datatypes
body: <p>I have a PHP Array which looks like this:</p>
  
  <pre><code>[0] =&gt; Array
      (
          [label] =&gt; Standard Stop
          [code] =&gt; 5
          [excludeIF] =&gt; [miniTrack, isTriangleHanger, tubeTrack, boxTrack]
      )
  
  [1] =&gt; Array
      (
          [label] =&gt; Soft Stop With Lag
          [code] =&gt; 7
          [excludeIF] =&gt; [miniTrack, isTriangleHanger, tubeTrack, boxTrack]
      )
  </code></pre>
  
  <p>When I do a json_encode it generates something like this:</p>
  
  <p><code>{"label":"Standard Stop","code":"5","excludeIF":"[miniTrack, isTriangleHanger, tubeTrack, boxTrack]"}</code></p>
  
  <p>The problem with that encode is that it's making the <code>code</code> a string and it's also making the <code>excludeIF</code> a string.</p>
  
  <p><code>code</code> needs to be a float</p>
  
  <p><code>excludeIF</code> needs to be an array</p>
  
  <p>Is something like that possible with JSON Encode?</p>