은승우

Update app.js

Showing 1 changed file with 3 additions and 3 deletions
...@@ -102,10 +102,10 @@ async function handleEvent(event) { ...@@ -102,10 +102,10 @@ async function handleEvent(event) {
102 let jsonResponse = JSON.stringify(JSON.parse(body), null, ' '); 102 let jsonResponse = JSON.stringify(JSON.parse(body), null, ' ');
103 jsonResponse=jsonResponse.toString() 103 jsonResponse=jsonResponse.toString()
104 console.log(jsonResponse); 104 console.log(jsonResponse);
105 - while(jsonResponse.indexOf('text\\')!=-1) 105 + while(jsonResponse.indexOf('text')!=-1)
106 { 106 {
107 - jsonResponse=jsonResponse.substring(jsonResponse.indexOf('text\\')+9); 107 + jsonResponse=jsonResponse.substring(jsonResponse.indexOf('text')+5);
108 - text+=jsonResponse.substring(0,jsonResponse.indexOf("\\"))+" "; 108 + text+=jsonResponse.substring(0,jsonResponse.indexOf("}"))+" ";
109 console.log("text:"+text); 109 console.log("text:"+text);
110 110
111 } 111 }
......