JSFiddle - React, Tailwind, and code Playground

by Suryar Praveen

JavaScript

var obj = {
    date: " 2012-10-18 16:58:35.104576",
    data: [
        {
        title: "The Princess Bride",
        rating: "PG",
        length: 128,
        stars: [
            "Gary Elwes",
            "Robin Wright",
            "Christopher Guest"
            ]

        },
    {
        title: "This is Spinal Tap",
        rating: "R",
        length: 105,
        stars: [
            "Christopher Guest",
            "Michael McKean",
            "Harry Shearer"
            ]}
    ]
};


$.each(obj.data , function(key , value){ // 
    $.each(value.stars , function(k , v ){
        alert(v)
    });        
    
});