Adds export as json option for Shipping Rates

Needed a way to get shipping rates into the frontend, where I am using them for a shipping calculator on individual products.
Indentation is surely wrong?  Please clean it up! :)