Thanks!  I thought I had a conceptual misunderstanding of JSON.

Bill

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter
Schneider
Sent: Tuesday, October 16, 2007 10:41 AM
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] JSON help

> All,
> 
> I'm trying to use JSON for the first time.  I want to have some 
> configuration files for my application in JSON format.  I looked at 
> the wiki and the list archives, but did not find an example.
> 
> Here is my offending code and the error, including the JSON text:
> 
>                       var attribFile = "configuration/" +
this.directory + 
> "Selector.txt";
>                       var req = new qx.io.remote.Request(attribFile,
"GET", 
> qx.util.Mime.JSON);
> 
> 878061240 ERROR: qx.io.remote.XmlHttpTransport[1756271]: Could not 
> execute json: [[
>       {
>               "displayName":  "Name",
>               "attrName:              "cn"
                        ^^^
                       maybe "attrName" : "cn" should do the job.
Although the parser stumbles over a missing colon, it's the double-quota
that's missing, I guess.

>       },
>       {
>               "displayName":  "IP Address",
>               "attrName":             "iphostnumber"
>       }
> ]]: SyntaxError - missing : after property id
> 
> 
> TIA,
> Bill
> [...]

Peter

------------------------------------------------------------------------
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to