Ability to return array, pre json encode

$encode Param needed to be passed