Having Issue on Looping In JSON File

Having Issue on Looping In JSON File

Can you please take a look at This Demo  and let me know why I am not able to load all objects in the JSON file under `utility` into the table

  1. var data = {
  2.   "utility": {
  3.     "Water": {
  4.       "account": "99999",
  5.       "balance": "5555",
  6.       "owner": "Fred"
  7.     },

  8.     "Phone": {
  9.       "account": "7777",
  10.       "balance": "6666",
  11.       "owner": "Mark"
  12.     },

  13.     "Power": {
  14.       "account": "A9885",
  15.       "balance": "2222",
  16.       "owner": "Suzan"
  17.     }
  18.   },

  19.   "clients": {
  20.     "David": {
  21.       "account": "99999",
  22.       "balance": "5555",
  23.       "Date": "Jan 11"
  24.     },

  25.     "George": {
  26.       "account": "7777",
  27.       "balance": "6666",
  28.       "Date": "March 22"
  29.     },

  30.     "Marco": {
  31.       "account": "A9885",
  32.       "balance": "2222",
  33.       "Date": "Feb 25"
  34.     }
  35.   }

  36. }


  37. for (var p in data.utility) {
  38.   console.log(p);
  39.   $("#tbl-data").append('<tr><td>' + p + '</td><td>' + p.utility.water.account + '</td><td>' + p.utility.water.balance + '</td><td>' + p.utility.water.owner + '</td></tr>');
  40. }

  41. <div class="container">
  42.   <table id="tbl-data" class="table table-hover"></table>
  43. <div>
As you can see I am getting this error in the console

Uncaught TypeError: Cannot read property 'water' of undefined

but cant' figure it out why?