I am using text file data for my script. I am loading the text file and getting the data from it. The text file contains data as below.
'DoctorA': {name: "Pharmaceuticals", title: "Switzerland, 120000 employees"},
'DoctorB': {name: "Consulting", title: "USA, 5500 employees"},
'DoctorC': {name: "Diagnostics", title: "USA, 42000 employees"},
'DoctorD': {name: "Fin Serv. & Wellness", title: "South Africa, employees"},
I load and use something like this to read the data from that text file.
data.speakers=names_val[0];
I have not fully specified my script. My problem is I am getting the entire text file when I load into data.speakers. Is there anyway to read only that title: fields or only that name: field