I have a map in my java sevlet and converting it to a json format that works right.
When I do this function below it creates a drop down, but it puts every character
I believe this can help you:
$(document).ready(function(){ var temp = {someKey:"temp value", otherKey:"other value", fooKey:"some value"}; for (var key in temp) { alert('' + temp[key] + ''); } });