I transfer data from the server. I get the date on the client.
Parsu:
var msg = JSON.parse(data); console.log(msg); I receive:
{'id': 17, 'created_at': None, 'modified_at': None, 'first_name': 'ccc', 'last_name': 'zzzzzzzzzxxxxxxxxx', 'full_name': 'xxxxxxxxxccc', 'email': None, 'password': None, 'active': True, 'confirmed_at': None, 'last_login_at': None, 'current_login_at': None, 'last_login_ip': None, 'current_login_ip': None, 'login_count': None, 'created_by': None} But when I try to get the value by key, msg.id or msg["id"] , I get undefined in response
I assume that the matter is “validity”, or None is available.
Tell me what to do? It is desirable that the data do not have to be changed on the server side.
Thanks in advance, and I apologize for the banal question.
console.log(data);? and what are theseNone,Trueand single quotes? - Igorconsole.log(typeof msg);- Grundy