Skip to content Skip to sidebar Skip to footer

Remove White Space In Json

How can I remove white space in the following code block and store in a javascript variable? This is original format { 'info':'First Json', 'description':'Official Website', 't

Solution 1:

var jsonWithWhitespaceRemoved = JSON.stringify(JSON.parse(variableWithJsonWhitespace))

Post a Comment for "Remove White Space In Json"