Fixes xeditor Ajax helper

Using JSON api to decode server responses in xeditor Ajax helper