title: Angular2 - Parse JSON into an Object
body: <p>Example: I have a Entity-Class named "Person"</p>
  
  <pre><code>constructor(name:string,surname:string,birthdate:string) {
      this.name = name;
      this.surname = surname;
      this.birthdate = birthdate;
  }
  </code></pre>
  
  <p>And in a "Manager"-Class I get a string that looks like a JSON:</p>
  
  <pre><code>{
      "name" : "testName",
      "surname" : "testSurrname",
      "birthdate" : "JJJJ:MM:DD hh:mm:ss"
  }
  </code></pre>
  
  <p>So how to parse the JSON into a "Person" </p>
  
  <pre><code>personData : Person;
  jsonData : JSON;
  public toPerson(data: string): Person {
      this.jsonData = JSON.parse(data);
      .?
      .?
      .?
      personData = new Person(....);
      return personData;
  }
  </code></pre>