public static function createFromJson(string $json, bool $assoc = true, int $depth = 512 , int $options = 0) : array
    {
        return json_decode($json, $assoc, $depth, $options);
    }
public static function createFromJson(string $json, bool $assoc = true, int $depth = 512 , int $options = 0) : array
    {
        return json_decode($json, $assoc, $depth, $options);
    }
public static function createFromJson ( string $ json , bool $ assoc = true , int $ depth = 512 , int $ options = 0 ) : array { return json_decode ( $ json , $ assoc , $ depth , $ options ) ; }
Create an new Array from JSON string.

$str = '{"firstName":"John", "lastName":"Doe"}';

// Array['firstName' => 'John', 'lastName' => 'Doe']
$array = Arr::createFromJson($str);

@param string $json The JSON string
@return array
Create an new Array from JSON string .