I have a query regarding processing json request made with jquery ajax,
my json string after processing javascript object with JSON.stringify() looks like below:
{"user1":{"hardwork":3,"cooperative":4,"supportive":3,"knowledge":3},
"user2":{"hardwork":5,"cooperative":5,"supportive":3,"knowledge":3}}
lets say user1 and user2 are usernames, and for each user we have categories and value for each category.
As required i need to post this page to jsp page. Also, i require both keys and values from this json string at JSP page.
How to do this?
which json-java library is suitable ?
how to iterate through both key and value in the java/json object in my jsp page (like we do with for in loop in javascript)?
Thanks
You will get some idea about better java JSON libraries here
With those do what you want