I have a $getJSON() that i want to pass a var through how ever i always get **undefined** in console log.

I have done this before i just cant seem to figure out why this isnt working.

Any help would be appreciated.

here is my example

```js
{
    "harry": {
        "example": "test",
        "example1": "test",
    }
    "james": {
        "example": "test",
        "example1": "test",
    }
    "ben": {
        "example": "test",
        "example1": "test",
    }
}
```

```js
  var usersidno = $("#hiddenid").html();
  $.getJSON(
  "http://localhost/example/file.json",
  function(json) {
  console.log(json.usersidno);
  });
```

```html
<div id="hiddenid">harry</div>
```