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
{{ message }}
This repository was archived by the owner on Oct 4, 2022. It is now read-only.
Hi,
i have a problem sending data via a post request to my server.
It works fine with simple data (strings, numbers) but it goes wrong when i send arrays or objects as the data.
I have this data structure that i am trying to send:
(console.log on the client)
Userdata
Object {Name: "mm", LoginName: "mm", Password: "mm", Roles: Array[2], Language: "de"…}
Groups
:
Array[2]
0
:
"56f064923e30b1c32aabd8ef"
1
:
"56f064923e30b1c32aabd8f0"
length
:
2 proto
:
Array[0]
Language
:
"de"
LoginName
:
"mm"
Name
:
"mm"
Password
:
"mm"
Roles
:
Array[2]
0
:
"56f064923e30b1c32aabd8ec"
1
:
"56f064923e30b1c32aabd8ed"
length
:
2 proto
:
Array[0] proto
:
Object
i send this as an object like this
data = {}
data.userData = (above object)
simplified
ajax
type: POST
content-type: application/json
data: data