Get Value from nest json level - Javascript JSon

Javascript examples for JSon:JSon String

Description

Get Value from nest json level

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <script type="text/javascript">
var language = {// w ww . j a v  a  2 s  .  c  om
        "language": "german",
        "glossary": {
            "Level": "Ebene",
            "Codes": "Codes"
        }
    };
function ab()
{
document.getElementById("lblLevel").innerHTML = language.glossary.Level;
}

      </script> 
   </head> 
   <body onload="ab()"> 
      <div class="level"> 
         <b id="lblLevel">Level</b> 
      </div>  
   </body>
</html>

Related Tutorials