convert cookies.txt to json
npm install -g cookie2json
visit https://chrome.google.com/webstore/detail/cookiestxt/njabckikapfpffapmjgojcnbfjonfjfg?utm_source=chrome-ntp-icon, install this extension to chrome, then export cookies, default file name will be cookies.txt.
then cookie2json -f cookies.txt
, you are done~