Change record status: 
Project: 
Introduced in branch: 
8.x
Description: 

drupal_json_encode() has been moved to \Drupal\Component\Serialization\Json::encode() and
drupal_json_decode() has been moved to \Drupal\Component\Serialization\Json::decode().

Drupal 7:

$json = drupal_json_encode($data);
$data = drupal_json_decode($json);

Drupal 8:

use Drupal\Component\Serialization\Json;
$json = Json::encode($data);
$data = Json::decode($json);
Impacts: 
Module developers