[Catalyst] formfu->JSON

Paul Tichonczuk paultk at gmail.com
Mon Nov 10 20:24:54 GMT 2008


Hi,
I'm new to Catalyst.
I've gone through both the Catalyst Tutorial and the Catalyst book.

I'm trying out FormFu + Jemplate.

Basic problem I've come up to is redering a FormFu form into JSON for
sending to the client.

I keep getting:
[error] Caught exception in MyApp::View::JSON->process "encountered
object 'MyApp::Controller::Books=HASH(0x9f4406c)', but neither
allow_blessed nor convert_blessed settings are enabled at
/usr/local/share/perl/5.8.8/JSON/Any.pm line 426."

This is based off of the Catalyst Tutorials books example.

My action was modified to contain the following:

$form->render();
$c->stash->{current_view}='JSON';

and I removed the template line as I'm not using one.

I've looked for any general help on this subject and am a little lost.

Any help would be appreciated.


-- 
Paul Tichonczuk  |  tracer.ca



More information about the Catalyst mailing list