Json::decode

public static Json::decode($string)

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

core/lib/Drupal/Component/Serialization/Json.php, line 25

Class

Json
Default serialization for JSON.

Namespace

Drupal\Component\Serialization

Code

public static function decode($string) {
  return json_decode($string, TRUE);
}
doc_Drupal
2016-10-29 09:21:36
Comments
Leave a Comment

Please login to continue.