JSFiddle - React, Tailwind, and code Playground

by thecodeparadox

HTML

<link rel="stylesheet" href="///ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/base/jquery-ui.css">

JavaScript

var data = {
    "status": true,
    "1": {
        "id": "1",
        "deal": "Testing the mobile"
    },
    "2": {
        "id": "2",
        "deal": "Testing"
    },
    "3": {
        "id": "3",
        "deal": "Testing"
    }
};

for(var key in data){
    if (key != 'status') {
        alert(data[key].id);
        alert(data[key].deal);
    }
}