How to convert the text document data to JSON, I have a text file that should be parsed to JSON data. I had attached the data present in a text document below, the data in the text contains many blank spaces. How to construct a proper JSON... I'm not able to get any solution on how to do this, can anyone help me out either on javascript or nodejs.
Text document data
Name: Test123 Date: 09/05/2019
Gender: Male
Designation: Senior Software Engineer
Specialization:
HTML,Css,Javascript
Java,Node,Angular
Required Json data
{
"Name":"Test123",
"Date":"09/05/2019",
"Designation":"Senior Software Engineer",
"Specialization":"HTML,Css,JavascriptJava,Node,Angular"
}