function jsonToForm(json, helper, info) { console.log("jsonToForm json", json); console.log("jsonToForm helper", helper); console.log("jsonToForm info", info); $('#jsonElements').empty(); if (typeof helper["avideoPluginDescription"] === "object") { labelText = helper["avideoPluginDescription"].name; labelDescription = helper["avideoPluginDescription"].description; div = $('
', { "class": 'alert alert-info' }); strong = $('', { "html": labelText + "
" }); p = $('

', { "html": labelDescription }); div.append(div); div.append(strong); div.append(p); $('#jsonElements').append(div); } $.each(json, function (i, val) { var div; var label; var input; var labelText = i; var labelDescription = ''; if (typeof helper[i] === "object") { labelText = helper[i].name; labelDescription = helper[i].description; if (validURL(labelDescription)) { labelDescription = ""; } else if (labelDescription) { labelDescription = ""; } labelText += " " + labelDescription; } if (i.startsWith("avideoPluginHTML_") && typeof (val) === "string") { div = $(val); } else { if (typeof (val) === "object") {// checkbox div = $('

', { "class": 'form-group' }); label = $('