@bobyui wrote:
Hi,
I have an issue with parsing a large json data with the following methods :
this.http.setHeader('domain.com','Content-type', 'application/json'); this.http.setDataSerializer('utf8'); this.http.post('https://domain.com/search', JSON.stringify({ signature:'xxxxxxxxxxx', trip_class:'Y', passengers:{ adults:1, children:0, infants:0 } ), {}) .then((res:any) => { let response = JSON.parse(res.data); this.http.setHeader('domain.com','Accept-Encoding', 'gzip,deflate,sdch'); this.http.get('https://domain.com/search_results?id='+response.search_id, {},{}).then((res:any) => { console.log('list : ', res.data); }).catch(error => { console.log(error); }); }) .catch(error => { console.log("Error 0 = ",error) });the 1st get works, but when I check log , when its trying to run the 2nd get, the app suddenly crash? as the data parsed are around 30MB I checked via postman, and postman crashed too!
anyway, I can parse this efficiently? as there are no limit or pager available
Posts: 1
Participants: 1