Where the under the hood light of a Jeep Wrangler switch is located?

The switch is part of the lamp assembly. qcbt3The lamp assembly uses a mercury switch similar to a home thermostat. as the switch body is moved (by raising the hood) encapsulated mercury flows from one end to the other of its capsule and makes the circuit for the under hood lamp. To test,remove the connector at the light assembly and check for 12 volts DC. If you have voltage, the circuit is good and you need to replace the light assembly. Usually the lamp contacts get corroded but the assembly is sealed and not owner serviceable.