failing tests for json post request
Adding a fix to ensure that POST requests can use the json option correctly