improve json/xml output when params contain a single variable