Skip to content

Difficulties with RapidApp and Catalyst::View::JSON #178

@smonff

Description

@smonff

Hello,

Is there any reason that, when using RapidApp, when I try to set a Catalyst::View::JSON view with something like:

$ perl script/testapp_create.pl controller Api
$ perl script/testapp_create.pl view JSON JSON

And the following in a controller :

sub index :Path :Args(0) {
    my ( $self, $c ) = @_;
    $c->stash->{hello} = "world";
    $c->forward( $c->view('JSON'));
}

... the JSON data are always null in the front-end side? The headers are correctly set and my browser interpret it as JSON, but it only display null, no key/value pairs. I tested it with a normal Catalyst application and everything behave like expected without any other configuration.

Maybe it is collisioning with something else, or, there is a specific RapidApp way to do this, but I didn't find anything in the doc, sorry.

Thanks for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions