The circuit for LED with 220v power supply used a capacitor and a resistor to turn on a LED.
It also used a 104 pf of 400/600 volt having a 1 mega ohms connected to pf's both leg which means it's parallel to pf.
This circuit can turn on a led but sometime a surge can damage the LED.