Ok - I'm stumbling at the first hurdle here then. I know that this is JSON question but its in the context of this example.
I'm looking at: http://www.json.org/js.html and trying to follow their example: So I have var myJSONObject = {"bindings": [ {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"}, {"ircEvent": "PRIVMSG", "method": "deleteURI", "regex": "^delete.*"}, {"ircEvent": "PRIVMSG", "method": "randomURI", "regex": "^random.*"} ] }; But when I call: var myObject = eval('(' + myJSONObject + ')'); I get missing ] after element list http://localhost:8080/prototypes/FirstJSON.html# Line 79 What am I doing wrong? Jesse Kuhnert wrote: > You don't need a json javascript library, that's the whole point of > the protocol. You just eval ' it and you're on your way. > > If you want to get the response back correctly eval'd for you and such > you can implement the function: > > tapestry.loadJson=function(type, data, http, kwArgs){ } > > "data" will be your json object structure. Ie if you returned > something like {this:value,means:nothing} you'd be able to do: > > > tapestry.loadJson=function(type, data, http, kwArgs){ > alert("Hey what does it mean?: " + data["means"]); > } > -- Justin Walsh http://www.ewage.co.za --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]