Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert associative array to json javascript

var my_cars= {};
my_cars["cool"]="Mustang";
my_cars["family"]="Station Wagon";
my_cars["big"]="SUV";
alert(JSON.stringify(my_cars));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #associative #array #json #javascript
ADD COMMENT
Topic
Name
6+1 =