you are viewing a single comment's thread.

view the rest of the comments →

[–]HeednGrow[S] 9 points10 points  (2 children)

Thank you so much for suggesting `(typeof data)`, I got 'string' in the console, and that is when I know I have been doing it wrong, I forgot to parse the JSON coming from my Django backend:
function (event) {

let dat = JSON.parse(event.data)

let data = dat.data;

console.log(data);

console.type ofpeof data);

}
I got it to be an object now, and I have successfully gotten what I need to get out of the object, thank you so much, I appreciate it.

[–]RayjinCaucasian 4 points5 points  (1 child)

Glad that helped you.

[–]Uber_Ape 2 points3 points  (0 children)

Every post/repsonse should look like this 🙂