Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

json html encode

<script>
<!DOCTYPE html>
<html>
<head>
	<title>Json Encode</title>
</head>
<body>

	<script type="text/javascript">
		var obj = {
			id:1,
		  name:'John',
		  address:'Silicon Valley'
		}
		var objEncode = JSON.stringify(obj);
		console.log(objEncode);
	</script>
</body>
</html>
</script>
 
PREVIOUS NEXT
Tagged: #json #html #encode
ADD COMMENT
Topic
Name
4+3 =