Saving html data input into a json file using node js | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Saving html data input into a json file using node js

How to get data from user and to save it in json each time without deleting the previous data entered

1st Apr 2020, 1:21 AM
Mohamed Ali Doukanish
Mohamed Ali Doukanish - avatar
4 Answers
+ 2
Use fs module to append the data to the existing json file
4th Apr 2020, 10:48 AM
deeyae
deeyae - avatar
+ 2
Mohamed Ali Doukanish no problem 🙂
25th May 2020, 9:40 AM
deeyae
deeyae - avatar
+ 1
Thank you😂😂😅I thought i thanked you a month ago but apparently not, i am sorry
25th May 2020, 6:06 AM
Mohamed Ali Doukanish
Mohamed Ali Doukanish - avatar
0
Oh and I used body-parser first then worked flawlessly with fs🖤
25th May 2020, 4:41 PM
Mohamed Ali Doukanish
Mohamed Ali Doukanish - avatar