Joszko
✅ [SOLVED] Weird DTO response
Hi! I'm working with Dotnet8 and im creating a web app with Vue. I wanted console.log a DTO which looks like this:
{
"contentType": null,
"serializerSettings": null,
"statusCode": null,
"value": {
"data": {
"nickname": "Joszko",
"money": 1000,
"energy": 100,
"rank": "Silver_I",
"level": 10,
"experience": 500,
"levelPoints": 50,
"healthPoints": 200,
"attackPoints": 150,
"defensePoints": 100,
"luckPoints": 80,
"intelligencePoints": 70
},
"success": true,
"message": ""
}
}
Instead im getting this object which is the full object 0_0:
Proxy(Object)
[[Target]]: Object
account: null
accountId: 1
armour: null
attackPoints: 150
defensePoints: 100
energy: 100
eqArmourId: null
eqWeaponId: null
experience: 500
healthPoints: 200
id: 1
intelligencePoints: 70
level: 10
levelPoints: 50
luckPoints: 80
money: 1000
rank: "Silver_I"
stats: null
student_Armours: []
student_Foods: []
student_Weapons: []
weapon: null
22 replies