Monday, February 23, 2015

JSON Data can be modified like

var employees = [
    {"firstName":"John""lastName":"Doe"},
    {"firstName":"Anna""lastName":"Smith"},
    {"firstName":"Peter","lastName""Jones"}
];


employees[0].firstName = "Gilbert";

employees[0]["firstName"] = "Gilbert";

No comments:

Post a Comment