Changed Content-type & added ability to parse json objects in http payload

Response is always in JSON... so why not change Content-type to JSON?

Added ability to parse json object in http payload... dont know why it is now in the same pull request :-/