خرید بک لینک

Vote count: 0

I want to get the value that holds the first child of a JSON array.

This is the array :

var sms = {
    '1' : {
        'address' : '+123',
        'body' : 'SMS1'
    },
    '2' : {
        'address' : '+123',
        'body' : 'SMS2'
    },
    '3' : {
        'address' : '+123',
        'body' : 'SMS3'
    },
    '4' : {
        'address' : '+123',
        'body' : 'SMS4'
    }
};

The reason is i want to loop in it to search a string using the first childs value as it is above. Example sms.[0] = 1;

asked 18 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 4 تير 1395 ساعت: 6:18

صفحه بندی