title: JSON with function value with parameters
body: <p>i have a very little problem but don't know how to solve it.
  I need to send a JSON with a function, but with parameters and this is my problem.</p>
  
  <p>Sending a function in JSON is simple:</p>
  
  <pre><code>var jsonVariable = { var1 : 'value1', var2 : 'value2', func: function(){ alert('something'); } };
  </code></pre>
  
  <p>I need something else, need to pass the func function as parameter with parameters.</p>
  
  <p>Example:</p>
  
  <pre><code>var jsonVariable = { var1 : 'value1', var2 : 'value2', func: funcParam(param1,param2) };
  function(parameter1, parameter2){
       alert(parameter1 + parameter2);
  }
  </code></pre>
  
  <p>But this don't work :(</p>
  
  <p>Any help with this will be really appreaciated</p>