Hey dude, Jordan is a fantastic destination to explore!
For comfortable weather and fewer crowds, the ideal seasons to visit Jordan are:
Spring (March to May): At this time, the temperatures are mild (anywhere between 15-25°C/59-77°F). Plus, fewer crowds and beautiful wildflowers make it an excellent time to explore Petra and Wadi Rum.
Autumn (September to November): During this time, the days are typically warm (anywhere between 20-30°C/68-86°F) and the nights are cooler. Moreover, smaller crowds create a perfect atmosphere for desert adventures.
You may avoid visiting during:
Summer (June to August): You will have to witness scorching heat (above 35°C/95°F) and large crowds.
Winter (December to February): You might have to witness cool temperatures (anywhere between 5-15°C/41-59°F) and occasional rain.
I would suggest plan your trip during the shoulder season (April-May or September-October) for the best experience!
Have a wonderful trip @shahrukhkhan!