title: Function in object become not a function after JSON.parse
body: <p>I have model let say like this : </p>
  
  <pre><code>export default class UserObject
  {
      name: string;
      id: string;
  
      validateInsert()
      {
  
      }
  }
  </code></pre>
  
  <p>If i do like this : </p>
  
  <pre><code>const modelUser: UserModel = new UserModel();
  modelUser.ID = 1;
  modelUser.Name = "Ibrahim Aziz";
  modelUser.validateInsert();
  </code></pre>
  
  <p>everythings work fine, but if i do it like this : </p>
  
  <pre><code>modelUser = JSON.parse(stringJSONUser);
  modelUser.validateInsert();
  </code></pre>
  
  <p>I will get error saying validate insert is not a function, it seems that JSON parse only pass the value, not even initiate the object it self, any idea ?.</p>