Create and reference json parameter - Javascript JSon

Javascript examples for JSon:JSon String

Description

Create and reference json parameter

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript">
var json = [//from  w w  w. java 2 s  .c om
{
"_id": "Some Comments.",
"Loan Name": "College Access",
"Description": "Some Comments.",
"Signer": "Some Comments.",
"Co-signer": "Some Comments.",
"Interest Rate": "0.0525",
"Deferment": "Some Comments."
}];
console.log( json[0]["Loan Name"]);

      </script> 
   </head> 
   <body>  
   </body>
</html>

Related Tutorials