Answer the question
In order to leave comments, you need to log in
Why doesn't JSON.stringify work?
When I try to serialize an array to JSON format with a native function, JSON.stringify(clients_list)
I get an empty string like []
. What am I doing wrong?
Array:
var clients_list = [];
clients_list['id'] = [];
clients_list['session'] = [];
clients_list['id'][0] = 1;
clients_list['session'][0] = 1;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question