Added JSON data, function, for loop, nested loop