A solar junction box includes a housing having a base and walls defining a cavity. The base has an opening configured to receive a conductive foil. A power cable is held in the housing having a power terminal terminated to an end of the power cable positioned within the housing. An electronic module is removably received in the cavity. The electronic module has a circuit board including electronic components mounted to the circuit board, a foil contact configured to be removably coupled to the foil, and a power contact configured to be removably coupled to the power terminal. The circuit board has a power circuit electrically connecting the foil contact and the power contact.