Question: Is it possible to loop a json object one by one ?  

let's say I have this object (text). I want to loop on `text` and get **next** item every 1 minute until I get them all. How can I do this in javascript ? 

```
 var text = 
        {
        "name":"John Johnson",
        "street":"Oslo West 16",
        "determine":"555 1234567",
        "JSON":"concernant",
        "you":"value"
        };

       setInterval(function(){
       //text.getnext
       }, 1000);

```

sorry if it is duplicated I have not found solution.

Answer: 
You can use `Object.keys` if the order is not important:

```
var keys = Object.keys(text), i = 0;

var myInterval = setInterval(function(){
   if(i >= keys.length) clearInterval(myInterval); // You need to clear the interval ;) 
   var current = text[keys[i++]];
  //.....
}, 1000*60); //1 minute

```

I hope this will help you.
**Native:** 

You can get a list of keys in an array by using `Object.keys` and `setTimeout` built-in functions.

`Object.keys` returns an array of keys an an object
`setTimeout` takes a function and executes it after certain number of milliseconds (1000) in this case

So in your case 

```
  var keys = Object.keys(array);
  function iterate(keys, index){
     if(index == keys.length)
        return;
     else{
        console.log("current is " + array[keys[index]]);
        setTimeout(function(){iterate(keys, index + 1)}, 1000);
     }
  }

```

Then call `itterate(text, 0);`