• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pass JSON object from server to jQuery and loop on the object

 
Muhammad Ramahy
Greenhorn
Posts: 11
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I want to know how to loop on an Object "JSON" within jQuery

I use SpringMVC as server side

the code goes like this:

the server:


the page:

now I need to know how should I loop on the "forms" object inside jQuery and isn't the forms which is a list converted into JSON object or what?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the callback function in their getJSON example

http://api.jquery.com/jQuery.getJSON/

Eric
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic