Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

turn object into string javascript

var obj = {a: "a", b: "b" /*...*/};
var string = JSON.stringify(obj);
// OUTPUT:
// "{'a':'a', 'b':'b'}"
 
PREVIOUS NEXT
Tagged: #turn #object #string #javascript
ADD COMMENT
Topic
Name
7+6 =