added handling for fields w/ multiple values
added support for POSTing JSON data