Index: trunk/bkmk
===================================================================
--- trunk/bkmk	(revision 88)
+++ trunk/bkmk	(revision 91)
@@ -34,5 +34,5 @@
         my $identifier = shift;
         my $bookmark = find_bookmark($identifier);
-        print $bookmark ? Dump($bookmark->TO_JSON) : "Not Found\n";
+        print $bookmark ? Dump($bookmark->to_hashref) : "Not Found\n";
     },
     
@@ -41,5 +41,5 @@
         my $title = defined $TITLE ? $TITLE : fetch_title($uri);
         my $bookmark = $bookmarks->add({ uri => $uri, title => $title, tags => \@tags });
-        print Dump($bookmark->TO_JSON);
+        print Dump($bookmark->to_hashref);
     },
 
@@ -51,5 +51,5 @@
         # TODO: list by tags, date, etc.
         # TODO: coordinate this commandline script with the CGI app
-        print Dump([ map { $_->TO_JSON } @{ $resources->results } ]);
+        print Dump([ map { $_->to_hashref } @{ $resources->results } ]);
     },
 
@@ -60,5 +60,5 @@
             $bookmark->tags(\@tags);
             $bookmarks->update($bookmark);
-            print Dump($bookmark->TO_JSON);
+            print Dump($bookmark->to_hashref);
         } else {
             die "Not found\n";
@@ -77,5 +77,5 @@
     dump => sub {
         my ($dump_file) = @_;
-        my $dump = [ map { $_->TO_JSON } @{ $bookmarks->search->results } ];
+        my $dump = [ map { $_->to_hashref } @{ $bookmarks->search->results } ];
         $dump_file ? YAML::DumpFile($dump_file, $dump) : print Dump($dump);
     },
