Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r17202: LJSUP-6614 ('objToJson' obsoleted/not fo...

Committer: ailyin
LJSUP-6614 ('objToJson' obsoleted/not found)
U   trunk/bin/worker/lastfm-current-track
Modified: trunk/bin/worker/lastfm-current-track
===================================================================
--- trunk/bin/worker/lastfm-current-track	2010-08-26 07:59:52 UTC (rev 17201)
+++ trunk/bin/worker/lastfm-current-track	2010-08-26 08:14:24 UTC (rev 17202)
@@ -17,7 +17,7 @@
 use LJ::NewWorker::Gearman;
 use LJ::LastFM;
 use Storable qw(freeze thaw); # safe across updating when use with simple structures only
-use JSON;
+use LJ::JSON;
 
 sub declare { [ 'get_current_track' => \&get_current_track ] }
 sub work    { [ 'save_result' => 1 ] }
@@ -28,7 +28,7 @@
     my $arg = $job->arg; # restricted to be a scalar
     my ( $username ) = @{thaw($arg)};
 
-    return JSON::objToJson( LJ::LastFM::current($username) );
+    return LJ::JSON->to_json( LJ::LastFM::current($username) );
 }
 
 

Tags: andy, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments