Sunday, March 27, 2011

Setting a JSON Object from an input field

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.

Cheers.

From stackoverflow

0 comments:

Post a Comment