How do I get this value
How do I get this value
I have a webmethod returning this json value :
[{"ProductName":"Microsoft Basic","ActivationDate":"20Jan13","ExpiryDate":"30Jan13","Status":"Finished"},
"ProductName":"Photoshop Basic","ActivationDate":"10Jan13","ExpiryDate":"15Jan13","Status":"Activated"}]
var RowDataFullDetail =
[{"UserName":"Audrey","Email":"test@email.com","details":
[{"ProductName":"Microsoft Basic","ActivationDate":"20Jan13","ExpiryDate":"30Jan13","Status":"Finished"},
{"ProductName":"Photoshop Basic","ActivationDate":"10Jan13","ExpiryDate":"15Jan13","Status":"Activated"}]},
{"UserName":"Andrew","Email":"anothertest@email.com","details":
[{"ProductName":"Managing People","ActivationDate":"20Jun13","ExpiryDate":"25June13","Status":"Activated"}]}];
//this var is working
var WorkingData = RowDataFullDetail[rowIndex].details;
//how do i get the data to return as WorkingData, with the webmethod value? webmethod value is basically the details of RowDataFullDetail
Answers
Please ignore this question. Found the solution - typo syntax error.