Re: json > minus, colon, plus character key problem
- From: "scripts.contact" <scripts.contact@xxxxxxxxx>
- Date: 30 Apr 2007 01:01:25 -0700
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']);
.
- Follow-Ups:
- References:
- Prev by Date: json > minus, colon, plus character key problem
- Next by Date: Re: intranet website and image caching
- Previous by thread: json > minus, colon, plus character key problem
- Next by thread: Re: json > minus, colon, plus character key problem
- Index(es):