When to use express.urlencoded() and express.json()

And why we use express.urlencoded() and express.json()?