src/helpers/I18n.php
public static function decodeFindActive($input, $onEmptyValue = '', $lang = null)
    {
        return static::findActive(static::decode($input, $onEmptyValue), $onEmptyValue, $lang);
    }
public static function decodeFindActive($input, $onEmptyValue = '', $lang = null)
    {
        return static::findActive(static::decode($input, $onEmptyValue), $onEmptyValue, $lang);
    }
public static function decodeFindActive ( $ input , $ onEmptyValue = '' , $ lang = null ) { return static :: findActive ( static :: decode ( $ input , $ onEmptyValue ) , $ onEmptyValue , $ lang ) ; }
Decodes a json string and returns the current active language item.

```php
// assume the default language is `en`
$output = I18n::decodeFindActive('{"de":"Hallo","en":"Hello"}');

echo $output; // output is "Hello"
```

@param string $input The json string
@param string $onEmptyValue If element is not found, this value is returned instead.
@param string $lang The language to return, if no lang is provided, the language resolved trough the admin ui (or user language) is used by default.
@return string The value from the json for the current active language or if not found the value from onEmptyValue.
Decodes a json string and returns the current active language item .