public static function Json::decode in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Serialization/Json.php \Drupal\Component\Serialization\Json::decode()
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\SerializationCode
public static function decode($string) {
return json_decode($string, TRUE);
}