Re: [Mojolicious] JSON is rendered twice

2015-02-16 Thread Stefan Adams
On Mon, Feb 16, 2015 at 7:11 AM, Magnificent Core wrote: > Using render(json => ...) doesn't work fine for Cyrillic symbols, that's > why I use data => . It renders only once for me . I also loaded it in a web browser and it renders only o

Re: [Mojolicious] JSON is rendered twice

2015-02-16 Thread Magnificent Core
Using render(json => ...) doesn't work fine for Cyrillic symbols, that's why I use data => . On Monday, February 16, 2015 at 4:01:52 PM UTC+3, John wrote: > > > On 02/16/2015 06:36 AM, Magnificent Core wrote: > > Hi all. > > > > I've noticed, that when json is rendered, sometimes it's rendere

Re: [Mojolicious] JSON is rendered twice

2015-02-16 Thread John
On 02/16/2015 06:36 AM, Magnificent Core wrote: Hi all. I've noticed, that when json is rendered, sometimes it's rendered actually twice. Here's the code I have: get '/test' => sub { my $self =shift; $self->render(data => encode_json {'a' => 'b'}); }; I bet the render and encode_js

[Mojolicious] JSON is rendered twice

2015-02-16 Thread Magnificent Core
Hi all. I've noticed, that when json is rendered, sometimes it's rendered actually twice. Here's the code I have: get '/test' => sub { my $self =shift; $self->render(data => encode_json {'a' => 'b'}); }; So, when I open in browser http://mysite.com/test I see the following in debug con