Store the json data locally in ionic

This is the json format iam getting how to store data in local storage

{“current_user”:{“uid”:“1”,“roles”:[“authenticated”,“administrator”],“name”:“xxxxxxxxx”},“csrf_token”:“xxxx”,“logout_token”:“xxxxx”}

This is the code i have tried
postinvoke() {
** let data = JSON.stringify**
** ({**
** “name”: this.userData.name,**
** “pass”: this.userData.pass,**
** });**
** let headers = new Headers();**
** headers.append(‘Content-Type’, ‘application/json’);**
** this.apiProvider.doPost(‘xxxxxxxxxxxxxxx’, data, { headers: headers })**
** .then(data => {**
** localStorage.setItem(‘loggedinData’, data[’_body’]);**


** let apiTokenUrl = ‘xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’;**
** this.HttpModule.get(apiTokenUrl)**
** .subscribe(data => {**
** localStorage.setItem(‘loggedin_token’, data[’_body’]);**
** console.log(‘loggedin_token’ + data[’_body’]);**
** }, error => {**
** console.log(error);// Error getting the data**
** });**
** this.navCtrl.setRoot(HomePage);**
** }, error => {**
** console.log("Access Denied ");**
** });**
** }**

Really sorry I cannot read this!

Can you put it into a code comment?

() => 'like this???'