How to Get Google Search Results in JSON?

Scraping Google may look simple at first, but turning search results into stable production data is a different problem.