This question is locked. New answers and comments are not allowed.
Hey
I have this json Data in a string.
And now I need to parse this JSON string to extract the Data and ComKod which is a child object to the Cr node as you can see. How can I extract that information?
So far I came up with this...
Please help me
I have this json Data in a string.
{ "Contacts" : [ { "CompanyPerson" : "Tia Bruchetta", "CompanyNumber" : "10001", "Cr" : [ { "Data" : "info@foretaget.se", "ComKod" : "7" } ] }, { "CompanyPerson" : "Matias Albrecht", "CompanyNumber" : "501167", "Cr" : [ { "Data" : "016-137180", "ComKod" : "3" }, { "Data" : "info@foretaget.se", "ComKod" : "8" } ] } ]}And now I need to parse this JSON string to extract the Data and ComKod which is a child object to the Cr node as you can see. How can I extract that information?
So far I came up with this...
for(var i=0; i < json.Contacts.length;i++) { var header = json.Items[i]; var child = header.Cr[0].toString()}Please help me