Ajax getter/setter with json formatted data