title: convert json object to typescript array
body: <p>For my current project I need to convert a json object to a typescript array. the json is as follows:</p>
  
  <pre><code>{
    "uiMessages" : {
      "ui.downtime.search.title" : "Search Message",
      "ui.user.editroles.sodviolation.entries" : "Violated SOD entries"
    },
    "userInfo" : {
      "login" : "fooUser",
      "firstName" : "Foo",
      "lastName" : "Bar",
      "language" : "en"
    },
    "appInfo" : {
      "applicationName" : "foo",
      "applicationVersion" : "6.1.0"
    }
  }
  </code></pre>
  
  <p>The json is a serialized java object and the uiMessages variable is a Hashmap in java. I need to parse the uiMessages to a Typescript Array of uiMessage objects. </p>
  
  <p>So far, I got to this:</p>
  
  <pre><code>@Injectable()
  export class BootstrapService {
  
    constructor(private http: Http) {}
  
    getBootstrapInfo() {
      return this.http.get('api/foo')
        .map(response =&gt; {
          response.json()
        })
    }
  }
  </code></pre>
  
  <p>How would I best do this?</p>