JSON decodes a variable. Twig has a built-in json_encode filter, but no built-in
function to JSON decode a string. This functionality remedies that.
public jsonDecode ( string $string ) : array | ||
$string | string | The string to decode. |
Результат | array | The JSON decoded array |