On 1/7/07, mwaschkowski <[EMAIL PROTECTED]> wrote:

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!

I really don't understand what your question is. What are you
expecting it to do? Do you know what JSON is?

-bob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
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