It looks like you're calling simplejson.dumps multiple times. There
are two complete JSON documents in that traceback:

First one:

{"rules":[{"date":"2006-08-16","opentimes":0,"ruleId":1},{"date":"2006-08-16","opentimes":0,"ruleId":2},{"date":"2006-08-16","opentimes":0,"ruleId":3},{"date":"2006-08-16","opentimes":0,"ruleId":4},{"date":"2006-08-16","opentimes":0,"ruleId":5},{"date":"2006-08-16","opentimes":0,"ruleId":6},{"date":"2006-08-16","opentimes":0,"ruleId":7}],"lastName":"AAAAA","firstName":"BBBB","resourceId":22}

Second one:

{"rules":[],"lastName":"GGGG","firstName":"DDDDD","resourceId":23}

You can't just stick two JSON documents together and expect a
meaningful result.. it's like doing this in Python:

foo = {"a": 1}{"b": 2}

-bob

On 8/18/06, fimi <[EMAIL PROTECTED]> wrote:
>
> ok so does this mean that the json converter for python is the problem
> or the way i did the dictionary and lists?
>
> btw, what do you use for coverting to JSON in python? i have simplejson
> but it seems to be a problem!
>
> thx
>
> Bob Ippolito wrote:
> > On 8/18/06, fimi <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi there, i'm getting this error, what am i doing wrong or how do i fix
> > > it?
> > >
> > >
> > > FATAL: SyntaxError :missing ) in parenthetical
> > > http://localhost/js/MochiKit/Async.js at line: 240
> > >
> > > eval("({\"rules\":[{\"date\":\"2006-08-16\",\"opentimes\":0,\"ruleId\":1},{\"date\":\"2006-08-16\",\"opentimes\":0,\"ruleId\":2},{\"date\":\"2006-08-16\",\"opentimes\":0,\"ruleId\":3},{\"date\":\"2006-08-16\",\"opentimes\":0,\"ruleId\":4},{\"date\":\"2006-08-16\",\"opentimes\":0,\"ruleId\":5},{\"date\":\"2006-08-16\",\"opentimes\":0,\"ruleId\":6},{\"date\":\"2006-08-16\",\"opentimes\":0,\"ruleId\":7}],\"lastName\":\"AAAAA\",\"firstName\":\"BBBB\",\"resourceId\":22}\n{\"rules\":[],\"lastName\":\"GGGG\",\"firstName\":\"DDDDD\",\"resourceId\":23}\n)")@:0
> > >
> > >
> > > ([object XMLHttpRequest])@http://localhost/js/MochiKit/Async.js:239
> >
> > That means the JSON you're parsing is not valid.
> >
> > -bob
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to