Take the 2-minute tour ×

I basically have the following flow:

XML -> JSON -> Spring MVC -> jsp page, which is displayed as a table with editable fields.

How do make is so that when i edit a field value it correct updates the Json Object?

I have used some nasty hacking at the moment, as i know (testing) the values/object I am going to get, so im just parsing the JSON string in javascript and sending that back.

So i can then just convert the json object (with new values) and post it back.


share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You could use the serialize method from prototypejs.


just by calling .serialize() you'll be able to get the updated object.

share|improve this answer
add comment

Your Answer


