JSFiddle - React, Tailwind, and code Playground

by mowglisanu

HTML

<!DOCTYPE html>
<html>
<head>
  <title>test</title>
</head>
<body>

    <script type="text/javascript">
        window.onload = function (){
          var jsonString = '{"Auckland":37616,"Wellington":35357,"Christchurch":29818}';
          var jsonObj = jQuery.parseJSON( jsonString );
          console.log(jsonObj);
          alert( jsonObj.Auckland );
    };

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