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.

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


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

    • Show all 15 messages in this topic