CHelp to create JSON

CHelp to create JSON

Dear Sir/Madam

I came as across


My difficulty is to stored the changed data 

in database so that changes can be stored and retrieved

pl help how can i do it