wp_remote instead of file_get_contents on non json

Hell yeah it is – check out the HTTP API for more information:

$http = wp_remote_get( 'http://example.com' );
$data = wp_remote_retrieve_body( $http );

// Carry on coding