Loading ...
Sorry, an error occurred while loading the content.

814Hello all I am new to json so I have a few questions

Expand Messages
  • timgerr
    Jun 27, 2007
      I am trying to work some examples from
      http://www.devpro.it/JSON/files/JSON-js.html and I keep getting an
      error "JSON is not defined." Do I have to declaire if someware? Here
      is the code that I am trying.


      <html>
      <head>
      <title>Learn Json v.01</title>
      <script type="text/javascript" src="json.js"></script>
      <script type="text/javascript"
      src="prototype.js"></script>
      <script type="text/javascript">
      var arr = JSON.decode('[1,2,3]');
      alert(arr); // 1,2,3
      </script>


      </head>
      </html>

      I have no ide what is wrong, thanks for your time.

      -T
    • Show all 15 messages in this topic