Maybe you could add a callback function somewhere in the client-side
script to inspect the object and modify it if it has an unexpected
format.

On 15 feb, 12:08, Vineet <[email protected]> wrote:
> Yes.
> The brackets are being added by the browser.
> I sent the dict from controller as return dict(mydict=D).
> Then jsonified it & rendered in view.
> It is without [ ].
>
> Is there any way we can prevent browser from adding the [ ]
>
> -- Vineet
>
> On Feb 15, 8:05 pm, Anthony <[email protected]> wrote:
>
>
>
>
>
>
>
> > > How? I guess that's where the problem is. I doubt simplejson is adding
> > > the [...]
>
> > When I tried it, simplejson did not add the brackets, so maybe the brackets
> > are getting added in the browser somehow.
>
> > Anthony

Reply via email to