today i'd like to translate a text to json data
exemple :
1    kokoa#0368's Discord Profile Avatar    kokoa#0000    826
2    Azzky 陈东晓#7475's Discord Profile Avatar    Azzky 陈东晓#0000    703
3    StarKleey 帅哥#6163's Discord Profile Avatar    StarKleey 帅哥#0000    640
to =>
{
 "kokoa#0000": "826",
 "Azzky 陈东晓#0000": "703",
 "StarKleey 帅哥#0000": "640"
}
for the moment i have this one :
fs.appendFile(`./Text/mess.txt`, `${body.replace(/s Discord Profile Avatar/g, '').split(/[\n \t ' ']/)}`, function (err) {
So the result is this one =>
1,kokoa#0368,,kokoa#0000,826
2,Azzky 陈东晓#7475,,Azzky 陈东晓#0000,703
3,StarKleey 帅哥#6163,,StarKleey 帅哥#0000,640
But i would like delete firsts numbers, delete the duplicate array and make this one on .json
Someone know how can i do this ? And if i need new method to make this one, it's not a problem.
Thank you.
 
    