I have some json (var data)that looks like this:
{"success":"true","keywords":["firstkeyword","secondkeyword"]}
And im trying to loop through the keywords using this code:
data.keywords.each(function(e){
$('#campaign_keywords').append("<p>"+e+"</p>");
});
But i get the error
Uncaught TypeError: Object firstkeyword,secondkeyword has no method 'each'