To my knowlege simplejson contrib was there because of standard json lib
was too slow...

Richard

On Wed, Jan 20, 2016 at 4:04 PM, Richard Vézina <[email protected]
> wrote:

> I mean, before in gluon/contrib there were simplejson, but I notice it had
> been removed in 2.10.x if I remember because it was not py3 compliant... I
> discover it hadly when my production app shown some strange behavior in
> some search field or autocomplete field where I was using it...
>
> I did't replace it with ujson which is really fast, but I would like to
> know what you propose instead of plain json from standard library?
>
> Richard
>
> On Wed, Jan 20, 2016 at 3:59 PM, Niphlod <[email protected]> wrote:
>
>> I really don't know what you meant (ontopic or offtopic)
>>
>> On Wednesday, January 20, 2016 at 9:49:58 PM UTC+1, Richard wrote:
>>>
>>> again what, off topic, ever!!
>>>
>>> :)
>>>
>>> Richard
>>>
>>> On Wed, Jan 20, 2016 at 3:43 PM, Niphlod <[email protected]> wrote:
>>>
>>>> ehm...... what again ?
>>>>
>>>> On Wednesday, January 20, 2016 at 9:36:01 PM UTC+1, Richard wrote:
>>>>>
>>>>> Simone,
>>>>>
>>>>> Since simplejson have be exit, and standard lib json it reputed
>>>>> multifold time slower what are you suggesting as a remedy?
>>>>>
>>>>> Richard
>>>>>
>>>>> On Wed, Jan 20, 2016 at 2:50 PM, Niphlod <[email protected]> wrote:
>>>>>
>>>>>> from gluon.serializers import json
>>>>>>
>>>>>> def uh():
>>>>>>     return json(blablabla)
>>>>>>
>>>>>>
>>>>>> On Wednesday, January 20, 2016 at 8:45:55 PM UTC+1, Ian W. Scott
>>>>>> wrote:
>>>>>>>
>>>>>>> I'm trying to use ajax calls to update the data for a chart
>>>>>>> dynamically. I don't want to make the chart a component that refreshes, 
>>>>>>> I
>>>>>>> just want to get the controller return value back to the javascript in 
>>>>>>> the
>>>>>>> view, so that I can update the chart via javascript. But web2py's ajax
>>>>>>> function seems to only (a) update a part of the page html, or (b) send 
>>>>>>> page
>>>>>>> data to the controller for use in the back-end. There doesn't seem to be
>>>>>>> any way to get the controller's return value as a data object for the
>>>>>>> javascript to use.
>>>>>>>
>>>>>>> I've tried just using jquery's get() method like this:
>>>>>>>
>>>>>>>     $.get(my_controller_url, function(data){
>>>>>>>         console.log('got ajax data', data);
>>>>>>>     });
>>>>>>>
>>>>>>> But if the controller's return value is a tuple there seems to be no
>>>>>>> data sent back, or at least I don't know how to access it from the 
>>>>>>> 'data'
>>>>>>> variable in this example. If I make the controller a dictionary I get 
>>>>>>> html
>>>>>>> back. But I don't want html. I just want the data.
>>>>>>>
>>>>>>> So how can I do this?
>>>>>>>
>>>>>> --
>>>>>> Resources:
>>>>>> - http://web2py.com
>>>>>> - http://web2py.com/book (Documentation)
>>>>>> - http://github.com/web2py/web2py (Source code)
>>>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "web2py-users" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>> --
>>>> Resources:
>>>> - http://web2py.com
>>>> - http://web2py.com/book (Documentation)
>>>> - http://github.com/web2py/web2py (Source code)
>>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "web2py-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to