Added charset spec to json content type and accept value.  Added a require for json.