You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default Frisby uses a application/x-www-form-urlencoded Content-Type. If you want Frisby to send the actual JSON in the POST body, simply specify a third parameter (options) with {json: true}.
When I try to send a json object I get
Unexpected token {
Basically, that's what I am sending:
.post(URL+'user/selfRegistration', { {name: "Alberto"} })
When I remove the json object, I get another error:
.post(URL+'user/selfRegistration', {name: "Alberto" })
Error:
A JSONObject text must begin with '{' at character 1
Is it a valid scenario?
The text was updated successfully, but these errors were encountered: