properly format empty json hashes and arrays
properly quote json strings
don't indent the json body when POSTing
Change method guess to 'POST' if the user provides form parameters