JSFiddle - React, Tailwind, and code Playground

by sirio3mil

JavaScript

/*
 * This is the correct json without error
var data = {
    "age" : "28",
    "city" : "Madrid, ES",
    "genre" : "male"
};
 */
/*
 * This is an empty variable that could by receive for example trougth an ajax call
 */
var data = "";
$.each(data , function(key, value) {
    alert(key + '=>' + value)
});