Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
JSON Examples
Keywords : Use json object in javascript with simple example, Bind json object to html elements in javascript, Simple json example in javascript
Example
<!DOCTYPE html> <html> <body> <h1>Simple JSON Object Creation Example in JavaScript</h1> <p id="jsonobj"></p> <script> var text = '{"username":"Suresh Dasari","address":"Chennai, Tamil Nadu","mobile":"9025652121"}'; var obj = JSON.parse(text); document.getElementById("jsonobj").innerHTML = obj.username+ "<br>" + obj.address+ "<br>" + obj.mobile; </script> </body> </html>
Click Here to See Result
Result