How to get the response in TEXT JSON?
vvbhandare opened this issue · 1 comments
vvbhandare commented
I am getting below OBJECT data, I need to get it in the form of TEXT JSON. How can I do that?
[ { ASIN: [ 'B01A1FDRP8' ],
DetailPageURL: [ 'https://www.amazon.com/Hateful-Eight-Samuel-L-Jackson/dp/B01A1FDRP8?SubscriptionId=AKIAIDIMYHICM62YDRLA&tag=vvb0fb-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B01A1FDRP8' ],
ItemLinks: [ [Object] ],
SmallImage: [ [Object] ],
MediumImage: [ [Object] ],
LargeImage: [ [Object] ],
ImageSets: [ [Object] ],
ItemAttributes: [ [Object] ],
OfferSummary: [ [Object] ],
Offers: [ [Object] ] },
{ ASIN: [ 'B00BJS7104' ],
DetailPageURL: [ 'https://www.amazon.com/Django-Unchained-Jamie-Foxx/dp/B00BJS7104?SubscriptionId=AKIAIDIMYHICM62YDRLA&tag=vvb0fb-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B00BJS7104' ],
ItemLinks: [ [Object] ],
SmallImage: [ [Object] ],
MediumImage: [ [Object] ],
LargeImage: [ [Object] ],
ImageSets: [ [Object] ],
ItemAttributes: [ [Object] ],
OfferSummary: [ [Object] ],
Offers: [ [Object] ] },
{ ASIN: [ 'B005T3AX6E' ],
DetailPageURL: [ 'https://www.amazon.com/Pulp-Fiction-John-Travolta/dp/B005T3AX6E?SubscriptionId=AKIAIDIMYHICM62YDRLA&tag=vvb0fb-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B005T3AX6E' ],
ItemLinks: [ [Object] ],
SmallImage: [ [Object] ],
MediumImage: [ [Object] ],
LargeImage: [ [Object] ],
ImageSets: [ [Object] ],
ItemAttributes: [ [Object] ],
OfferSummary: [ [Object] ],
Offers: [ [Object] ] },
{ ASIN: [ 'B001AQT0Z4' ],
DetailPageURL: [ 'https://www.amazon.com/Pulp-Fiction-Blu-ray-John-Travolta/dp/B001AQT0Z4?SubscriptionId=AKIAIDIMYHICM62YDRLA&tag=vvb0fb-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001AQT0Z4' ],
ItemLinks: [ [Object] ],
SmallImage: [ [Object] ],
MediumImage: [ [Object] ],
LargeImage: [ [Object] ],
ImageSets: [ [Object] ],
ItemAttributes: [ [Object] ],
OfferSummary: [ [Object] ],
Offers: [ [Object] ] },
{ ASIN: [ 'B002UEW31I' ],
DetailPageURL: [ 'https://www.amazon.com/Inglourious-Basterds-Brad-Pitt/dp/B002UEW31I?SubscriptionId=AKIAIDIMYHICM62YDRLA&tag=vvb0fb-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B002UEW31I' ],
ItemLinks: [ [Object] ],
SmallImage: [ [Object] ],
MediumImage: [ [Object] ],
LargeImage: [ [Object] ],
ImageSets: [ [Object] ],
ItemAttributes: [ [Object] ],
OfferSummary: [ [Object] ],
Offers: [ [Object] ] },
{ ASIN: [ 'B01A53WR3Y' ],
DetailPageURL: [ 'https://www.amazon.com/Hateful-Eight-Blu-ray-Samuel-Jackson/dp/B01A53WR3Y?SubscriptionId=AKIAIDIMYHICM62YDRLA&tag=vvb0fb-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B01A53WR3Y' ],
ItemLinks: [ [Object] ],
SmallImage: [ [Object] ],
MediumImage: [ [Object] ],
LargeImage: [ [Object] ],
ImageSets: [ [Object] ],
ItemAttributes: [ [Object] ],
OfferSummary: [ [Object] ],
Offers: [ [Object] ] },
{ ASIN: [ 'B005LAIIJY' ],
DetailPageURL: [ 'https://www.amazon.com/Django-Unchained-Jamie-Foxx/dp/B005LAIIJY?SubscriptionId=AKIAIDIMYHICM62YDRLA&tag=vvb0fb-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B005LAIIJY' ],
ItemLinks: [ [Object] ],
SmallImage: [ [Object] ],
MediumImage: [ [Object] ],
LargeImage: [ [Object] ],
ImageSets: [ [Object] ],
ItemAttributes: [ [Object] ],
OfferSummary: [ [Object] ],
Offers: [ [Object] ] },
{ ASIN: [ 'B006RXQ0YY' ],
DetailPageURL: [ 'https://www.amazon.com/Jackie-Brown-Pam-Grier/dp/B006RXQ0YY?SubscriptionId=AKIAIDIMYHICM62YDRLA&tag=vvb0fb-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B006RXQ0YY' ],
ItemLinks: [ [Object] ],
SmallImage: [ [Object] ],
MediumImage: [ [Object] ],
LargeImage: [ [Object] ],
ImageSets: [ [Object] ],
ItemAttributes: [ [Object] ],
OfferSummary: [ [Object] ],
Offers: [ [Object] ] },
{ ASIN: [ 'B001AQO3YW' ],
DetailPageURL: [ 'https://www.amazon.com/Jackie-Brown-Blu-ray-Pam-Grier/dp/B001AQO3YW?SubscriptionId=AKIAIDIMYHICM62YDRLA&tag=vvb0fb-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B001AQO3YW' ],
ItemLinks: [ [Object] ],
SmallImage: [ [Object] ],
MediumImage: [ [Object] ],
LargeImage: [ [Object] ],
ImageSets: [ [Object] ],
ItemAttributes: [ [Object] ],
OfferSummary: [ [Object] ],
Offers: [ [Object] ] },
{ ASIN: [ 'B009B0OG1O' ],
DetailPageURL: [ 'https://www.amazon.com/Tarantino-XX-Collection-Reservoir-Inglourious/dp/B009B0OG1O?SubscriptionId=AKIAIDIMYHICM62YDRLA&tag=vvb0fb-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B009B0OG1O' ],
ItemLinks: [ [Object] ],
SmallImage: [ [Object] ],
MediumImage: [ [Object] ],
LargeImage: [ [Object] ],
ImageSets: [ [Object] ],
ItemAttributes: [ [Object] ],
OfferSummary: [ [Object] ],
Offers: [ [Object] ] } ]
masterT commented
Use the JSON.stringify
function.
Ex: console.log(JSON.stringify(results, null, 2));