Guys,
What I have done is create a generic service that takes JSON data, and maps it to some html elements. Now when I map the enitre array of data to a field (I use encodeURIComponent and JSON.stringify it ) it's saved and worked. If I open and close make a change this mapping is lost.