Есть такой кусок кода:
var gplay = require('google-play-scraper');
gplay.search({term: "vpn", num: 20}).then(console.log);
Он выводит мне в консоль ответ:
[ { title: 'Secure VPN – A high speed, ultra secure VPN', appId: 'com.fast.free.unblock.secure.vpn', url: 'https://play.google.com/store/apps/details?id=com.fast.free.unblock.secure.vpn', icon: 'https://lh3.googleusercontent.com/Zc-JF30sqOGzgcYXHvAn3DfjaD9vc9UXnHZvdy4AifTQaISCKKqEsuGXFo2s0pWnIA', developer: 'Signal Lab', developerId: '6481577571535301345', priceText: 'FREE', free: true, summary: 'Secure VPN – A high speed, ultra secure, lightning fast VPN', scoreText: '4.6', score: 4.621746 }, { title: 'Turbo VPN- Free VPN Proxy Server & Secure Service', appId: 'free.vpn.unblock.proxy.turbovpn', url: 'https://play.google.com/store/apps/details?id=free.vpn.unblock.proxy.turbovpn', icon: 'https://lh3.googleusercontent.com/G7AkY7FY1XZQU8Xp_h5OGGovDxySJ2tLSlPxNRfl9E3lKDzyqY-2QYByz3CHovWRcg', developer: 'Innovative Connecting', developerId: 'Innovative+Connecting', priceText: 'FREE', free: true, summary: 'Best unlimited free VPN to unblock sites, WiFi hotspot security, protect privacy', scoreText: '4.6', score: 4.620028 } ]
Как эти данные записать в .json файл?