A jar is an item used to collect acid or water. Simply place it into the liquid and mine it, and you will get a jar of the liquid you chose. You need jars of water to survive in desert biomes if you don't have a high survival level.
How to Obtain
It can be obtained via crafting or trading