An earthquake hit New Jersey in the early hours of Wednesday morning and was felt as far away as New York City. The minor earthquake had a magnitude of 3.1 and struck around 20 miles southeast of Edison, New Jersey, at 2 a.m. ET.

A map from LastQuake shows that despite being fairly minor, the effects of the earthquake were felt miles from the epicenter.

According to USGS, people as far away as New York City, Philadelphia and Stamford felt the New Jersey earthquake. People reported feeling light to moderate shaking with none or very light damage.

LastQuake reported that someone in Matawan, 10 miles from the epicenter, described the earthquake as sounding "like a dump truck being dropped from a few stories up, but about 4-5 blocks away. It rumbled the floor for about 5 seconds," while someone a mile from the epicenter said that they heard "a large boom followed by rolling."

A resident of Malboro, nearly four miles from the epicenter reported hearing a "rumble like sound and feeling of house vibrating woke us from sound sleep.

"Couldn't tell if it was a storm or an explosion. Definitely wasn't thinking earthquake."

Many reports describe how the earthquake did not feel or sound like an earthquake, and instead sounded like an explosion or a sonic boom. The earthquake is reported to have shaken entire houses and woke up households.

New Jersey residents took to Twitter to joke about how it was their first experience of an earthquake, as one user said: "just experienced my first earthquake at 2 in the morning while in bed trying to fall asleep in CENTRAL NEW JERSEY"

Others expressed their annoyance at being woken up a 2 a.m., as Zanya on Twitter said: "why are the tectonic plates having a party at 2 am in new jersey...cmon now"

Emmy Tantuccio said: "earthquake in new jersey at 2 am because i simply cannot be allowed to chill at all at any time"

New Jersey does not get hit by many earthquakes and the very few earthquakes that the state does experience are typically minor.

Daniel R. Dombroski, Jr. wrote about the risks of earthquakes for New Jersey's Department of Environmental Protection and said that: "In New Jersey, earthquakes usually occur when slowly accumulated strain within the Earth's crust is suddenly released along a fault.

"The energy from this movement travels as seismic waves along the ground surface and within the crust. The arrival of this released energy is felt as an earthquake."

This is a developing story and will be updated as more information becomes available.

A stock image showing a seismograph. An earthquake hit New Jersey at 2 a.m. on Wednesday morning with the effects felt as far as New York City and Philadelphia.iStock