Calling a function and pass it a json object
<p>I have a json object named data like below</p>

<p><img src="http://i.stack.imgur.com/1Rw9b.png" alt="enter image description here"></p>

<p>And I have a function denomination in a string like below</p>

<p><img src="http://i.stack.imgur.com/G8x09.png" alt="enter image description here"></p>

<p>test is the name of the function I would like to call and pass it the json object data.</p>

<p>here is the test function:</p>

<pre><code>test = function (data) {
    alert('I am the test function');
}
</code></pre>

<p>I already try:</p>

<pre><code>eval(func(data));
</code></pre>

<p>It doesn't work.</p>

<p>Any idea?</p>

<p>Thanks.</p>
