Changeset 91 in bookmarks for trunk/lib/Bookmarks
- Timestamp:
- 06/05/15 19:32:33 (9 years ago)
- Location:
- trunk/lib/Bookmarks
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Bookmarks/Controller.pm
r88 r91 143 143 144 144 if ($format eq 'json') { 145 my $json = decode_utf8(JSON->new->utf8->convert_blessed->encode($bookmark ));145 my $json = decode_utf8(JSON->new->utf8->convert_blessed->encode($bookmark->to_hashref)); 146 146 return [200, ['Content-Type' => 'application/json; charset=UTF-8', 'Last-Modified' => $last_modified], [$json]]; 147 147 } else { -
trunk/lib/Bookmarks/List.pm
r88 r91 97 97 my $json = decode_utf8( 98 98 JSON->new->utf8->convert_blessed->encode({ 99 bookmarks => $self->results,99 bookmarks => [ map { $_->to_hashref } @{ $self->results } ], 100 100 }) 101 101 );
Note: See TracChangeset
for help on using the changeset viewer.