   # OUT: json
   sendJSONReceiveJSON : (url, options = {}) ->
 
-    body = if typeof(options.data) == "string"
+    body = if typeof options.data == "string"
         options.data
       else
         JSON.stringify(options.data)
 
     return @receiveJSON(
       url,
-      _.defaultsDeep(options,
+      _.defaultsDeep(options, {
         method : "POST"
         body : body
         headers :
           "Content-Type" : "application/json"
-      )
+      })
     )
 
 

  # OUT: json
  sendMultipartFormReceiveJSON : (url, options = {}) ->

    body = if options. instanceof FormData
        options.data
      else
        formData = new FormData()


    return @triggerRequest(
      url,
      _.defaultsDeep(options, { headers : { "Accept": "application/json" }}),
      @handleEmptyJsonResponse
    )

