Re: json > minus, colon, plus character key problem



On Apr 30, 1:44 am, "Marc" <sorry...@xxxxxxxxxxxxx> wrote:
if I try and get a value:
alert(json.web-app.servlet[0].servlet-name);
the minus in 'web-app' is giving problems.

alert(json['web-app'].servlet[0]['servlet-name']);

.