you may need to check if `JSON` is defined since older browsers don't support it.  If not, you'll have to fallback to the url encoded format.