You are here

public static function Json::decode in Plug 7

Decodes data from the serialization format.

Parameters

string $raw: The raw data string to decode.

Return value

mixed The decoded data.

Overrides SerializationInterface::decode

File

lib/Drupal/Component/Serialization/Json.php, line 30
Contains \Drupal\Component\Serialization\Json.

Class

Json
Default serialization for JSON.

Namespace

Drupal\Component\Serialization

Code

public static function decode($string) {
  return json_decode($string, TRUE);
}