adds support for POST/PUT of JSON HTTP requests