I need to pass a HashMap object from backing bean (JSF) to JavaScript and iterate it.
When I get the object in javascript, I checked it is not null but can’t iterate.
Is there any kind of Map that can be used in my scenario? or, How can I convert my HashMap object to normal JavaScript object that can be iterated with jQuery?
You can convert objects to JSON using free library like GSON.
Jquery will be able to recive it via $.ajax and iterate it using $.each.