/** * Convenience method for reading JSON from $file * * @param string $file * @param boolean $array * @return mixed */ function from_json_file($file, $array = true) { return from_json(file_get_contents($file), $array); }
public static function unserialize($serializedProtocolMessage, $type = null) { $deserialized = from_json($serializedProtocolMessage); return static::unserialize_arr($deserialized, $type); }