Hi

In order work around the routing issue I posted earlier, I am trying to 
serialise the output but I get nulls.

The dump of the output structure is:
$VAR1 = [
          bless( {
                   'org_name' => 'Fashion',
                   'id' => 3
                 }, 'org_list_dom' ),
          bless( {
                   'org_name' => 'Market',
                   'id' => 4
                 }, 'org_list_dom' ),
          bless( {
                   'org_name' => 'Property',
                   'id' => 5
                 }, 'org_list_dom' ),
          bless( {
                   'org_name' => 'Misc',
                   'id' => 6
                 }, 'org_list_dom' )

Passing this ($res)  into serialize:

               my $json = to_json( $res, { allow_blessed => 1, convert_blessed 
=> 1 } );

gives

[null,null,null,null]

Any clues as to what I may be doing wrong?

Z
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to