title: How to map JSON string to the calling of C# method
body: <p>I want to implement a framework to map JSON string to the calling of C# method. For example, I have a C# class Calculator defined as below.</p>
  
  <pre><code>// C# class
  class Calculator
  {
  public:
      int add (int x, int y);
      int sub (int x, int y);
  }
  </code></pre>
  
  <p>There is a JSON string as below. When the framework receives this string, it creates/new an object of class Calculator. Then call its function add. And pass the value 12 and 43 to the function as parameters.</p>
  
  <pre><code>// JSON string
  "{
  \"class\":\"Calculator\",
  \"method\":\"add\",
  \"parameters\": {
      \"x\" : \"12\", \"y\" : \"43\"
      }
  }"
  </code></pre>
  
  <p>Is there any 3rd party library to implement this? Or how can I implement it by myself?</p>