Hi!

I'm trying to use JSON to serialize this FormRowData (using Class from
prototype):

        var FormRowData= Class.create();
        FormRowData.prototype = {
                initialize: function(elementType, fieldName, text, id){
                        this.type = elementType;
                        this.fieldName = fieldName;
                        this.text = text;
                        this.id = id;
                },
                getText : function(){
                        return this.text;
                },
         etc....

and I'm putting these objects into an array. When I call:
  var jsonData = serializeJSON(this.formRowDataArray);
  logDebug('JSON=' + jsonData);

I'm getting back:
JSON=[{"type":"textBox", "fieldName":"Email", "text":"Email",
"id":"sortable_0"}]

I've looked into JSON a bit, and I believe there should be some
function references in there, but I'm not sure if I need to supply a
bit of help in this case or not...help!

Thanks,

Mark


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to