title: Ajax response string as function name
body: <p>How I can call javascript funtion if i have string which is same as function name?</p>
  
  <p>I have Ajax request and response:</p>
  
  <pre><code>{"message":"Updated","function":"UpdateClientsData()"}
  
  Submit.done(function (response){                
      var resultArray = JSON.parse(response);
  
      $.each( resultArray, function( key, value ) {       
  
          if( key == "function")
          {
              var run = value;
              [run]();                        
          }                   
      });
  
  function UpdateClientsData()
  {
      console.log("aaaaa");
  }
  </code></pre>
  
  <p>I get error message saying 'Uncaught TypeError: object is not a function'. What I am missing here?</p>
  
  <p>Error Line <code>[run]();</code></p>
  
  <p>Thank you</p>