JSON class not serializes memo fields (FIXED)

Topics: Developer Forum, User Forum
Developer
Nov 1, 2012 at 3:56 PM

Hi Claude!

I'm using ActiveVFP a lot and I found some bugs.
One of this bugs is that JSON class no serializes memo fields.
I found the solution (at least for me): in json.prg, SerializeCursor, line 1222 says

SCATTER NAME loRecordObject  && Cursors are serialized as an object containing an array of objects

and it must say

SCATTER MEMO NAME loRecordObject  && Cursors are serialized as an object containing an array of objects 

to add memo fields to loRecordObject object

 

Also DeserializeCursor was fixed; at line 1394 says

GATHER NAME m.loRowObject

and it must say

GATHER NAME m.loRowObject MEMO

I will upload this changes as soon as possible. Regards!

Coordinator
Nov 1, 2012 at 4:24 PM

Thanks!

These changes are simple so I will add them to the JSON class myself, test and release with AVFP 6 very soon.

(The last item I need to finish for AVFP 6 is the JQuery Mobile example which I'm working on right now)