One-dimensional carbon nanotube (CNT) junctions with interesting device characteristics have been designed by encapsulating p- and n-type organic molecules into CNTs with electrophilic tetracyano-p-quinodimethane (TCNQ) and nucleophilic tetrakis(dimethylamino)ethylene (TDAE) molecules in order to explore the effect of encapsulation of organic molecules and rectifying behaviors of the designed one-dimensional CNT p-n junctions. Our results show that p- and n-type doping of CNTs and their associated charge transfer play an important role in determining the electron transport characteristics and lead to materials with unique properties, p-n junction diode, i.e. Zener-like diode. Furthermore, we show that the operational device characteristics of non-covalently doped CNT junctions originate from the distinct response of intrinsic transmission peaks of pure CNTs according to the type of dopant and the applied bias. We believe that the results give an insight into the design and implementation of various electronic logic functions based on CNTs for applications in the field of nanoelectronics.