Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json stringify double quotes

var data = {
	name: "himanshu",
    github: "himanshurajora"
}
var strData = JSON.stringify(data)

// json stringify by default gives us double quotes
// you can setup the same format as json itself

var strData = JSON.stringify(data, null, 4)
 
PREVIOUS NEXT
Tagged: #json #stringify #double #quotes
ADD COMMENT
Topic
Name
7+1 =