Question: Say I have a JSON like this:

```
{
    "99999":{
            "success":true,
            "data":{
                "type":"blob",
                "name":"random"
            }
        }
}

```

How do I access the "name", where the "99999" will be different each time?

Answer: 
you can use below code with JSON.parse.

```
 var jsondata = '{"99999":{"success":true,"data":
         {"type":"blob","name":"random"}}}';

 $.each(JSON.parse(jsondata), function(idx, obj) {
  console.log(obj.data.name);
 });

```
**Using JavaScript :**

```js
var jsonObj = {
    "99999":{
            "success":true,
            "data":{
                "type":"blob",
                "name":"random"
            }
        }
};

var result = Object.keys(jsonObj).map(item => {return jsonObj[item].data.name});

console.log(result[0]);
```

**Using jQuery :**

```js
var jsonObj = {
    "99999":{
            "success":true,
            "data":{
                "type":"blob",
                "name":"random"
            }
        }
};

$.each(jsonObj, function(index, obj) {
  console.log(obj.data.name);
});
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
```