Parsing JSON via getJSON or AJAX

Parsing JSON via getJSON or AJAX

I'm quite new to jQuery. I'm trying to query JSON data via URL.  What is the difference between $.getJSON() and $.ajax()? If both works the same, which one allow me to specify parameters or attributes instead of putting everything on the URL?

Thanks!