javascript - How to access json elements -
i have variable soap looks
{ "soapenv:head":{ "title": "titlename" }, "soapenv:body":{ "element1": "elementname" } } how can access soapenv:body? having unexpected token : while trying
soap.soapenv:body
since have special char : in key-name, should use this:
soap["soapenv:body"]
Comments
Post a Comment