Knowledge Walls
Ammu
Hyderabad, Andhra Pradesh, India
Passcode:
Json parsing in Examples of Javascript 1
1177 Views
Example
<!DOCTYPE html>
    <html lang="en-US">
        <head>
            <meta charset="UTF-8">
            <title>function1</title>
        </head>
        <body>
            
            <script>
              var l1={"name":"vidhyaa","age":"30"};
              var con=JSON.stringify(l1);
              console.log(typeof con);
              console.log(con);
                
              var l2="{\"name\":\"saraty\",\"age\":\"29\"}"
              var co2=JSON.parse(l2);
              console.log(typeof co2);
              console.log(co2.name);
                
            </script>
            
        </body>
    </html>
Previous Topics
Previous lessons of current book.
Best Lessons of "Javascript 1"
Top lessons which are viewed more times.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details