I am getting RangeError: Maximum call stack size exceeded at 
Observable.extend.toJSON while trying to convert my object to Json using 
var myJSONText = angular.toJson($scope.item);

Can someone please help me to point out what is the reason for exceeding 
size, is it size of overall object or depth of contained objects.

Below is my "item" object copied as is:

{ "autoStart" : false,
        "destination" : { "archiveFolder" : null,
            "databaseDetails" : { "database" : null,
                "hostOrIP" : null,
                "id" : 3,
                "name" : null,
                "password" : null,
                "port" : null,
                "type" : null,
                "userName" : null
              },
            "deleteAfterDone" : false,
            "fileEmailDetails" : null,
            "fileFTPDetails" : null,
            "fileLength" : 0,
            "fileLocation" : "local",
            "fileName" : "c:\\temp\\ouput.txt",
            "fileNameCounter" : 0,
            "fileType" : { "category" : null,
                "id" : 0,
                "name" : "sep"
              },
            "filterForDB" : null,
            "id" : null,
            "keepNextLine" : false,
            "lastProcessedLine" : 0,
            "parentFolder" : null,
            "password" : null,
            "port" : null,
            "replaceExistingOrder" : false,
            "separator" : "|",
            "sequenceFieldNameForDB" : null,
            "serverName" : null,
            "sourceOsnColumn" : null,
            "startingLine" : 0,
            "tableName" : null,
            "userName" : null
          },
        "destinationType" : "File",
        "endTime" : null,
        "frequency" : 0,
        "id" : 2,
        "lastRun" : "2014/11/13 14:44:10",
        "mappings" : [ { "id" : null,
              "inputField" : "",
              "inputLength" : 0,
              "inputStartingPos" : 1,
              "outputField" : "",
              "outputLength" : 0,
              "outputStartingPos" : 1,
              "taskId" : 0,
              "transformation" : { "id" : null,
                  "inputFormat" : null,
                  "ioMaps" : null,
                  "length" : 0,
                  "outputformat" : null,
                  "startingPos" : 0,
                  "type" : "Prefix",
                  "value" : null
                }
            },
            { "id" : null,
              "inputField" : "",
              "inputLength" : 0,
              "inputStartingPos" : 2,
              "outputField" : "",
              "outputLength" : 0,
              "outputStartingPos" : 2,
              "taskId" : 0,
              "transformation" : { "id" : null,
                  "inputFormat" : null,
                  "ioMaps" : null,
                  "length" : 5,
                  "outputformat" : null,
                  "startingPos" : 1,
                  "type" : "Default",
                  "value" : null
                }
            },
            { "id" : null,
              "inputField" : "",
              "inputLength" : 0,
              "inputStartingPos" : 3,
              "outputField" : "",
              "outputLength" : 0,
              "outputStartingPos" : 3,
              "taskId" : 0,
              "transformation" : null
            },
            { "id" : null,
              "inputField" : "",
              "inputLength" : 0,
              "inputStartingPos" : 4,
              "outputField" : "",
              "outputLength" : 0,
              "outputStartingPos" : 4,
              "taskId" : 0,
              "transformation" : null
            },
            { "id" : null,
              "inputField" : "",
              "inputLength" : 0,
              "inputStartingPos" : 5,
              "outputField" : "",
              "outputLength" : 0,
              "outputStartingPos" : 5,
              "taskId" : 0,
              "transformation" : { "id" : 2,
                  "inputFormat" : "yyyyMMdd",
                  "ioMaps" : null,
                  "length" : 0,
                  "outputformat" : "dd-MMM-yyyy",
                  "startingPos" : 0,
                  "type" : "Reformat",
                  "value" : null
                }
            },
            { "id" : null,
              "inputField" : "",
              "inputLength" : 0,
              "inputStartingPos" : 6,
              "outputField" : "",
              "outputLength" : 0,
              "outputStartingPos" : 6,
              "taskId" : 0,
              "transformation" : { "id" : 1,
                  "inputFormat" : "HHmmss",
                  "ioMaps" : null,
                  "length" : 0,
                  "outputformat" : "dd-MMM-yyyy",
                  "startingPos" : 0,
                  "type" : "Reformat",
                  "value" : null
                }
            }
          ],
        "name" : "FileToFile",
        "oneShotDone" : false,
        "postProcessingCommand" : null,
        "postProcessingDB" : null,
        "postProcessingFileName" : null,
        "postProcessingFrequency" : null,
        "postProcessingType" : "N",
        "preProcessFileName" : null,
        "preProcessingCommand" : null,
        "preProcessingDB" : null,
        "preProcessingFrequency" : null,
        "preProcessingType" : "N",
        "source" : { "archiveFolder" : null,
            "databaseDetails" : null,
            "deleteAfterDone" : false,
            "fileEmailDetails" : null,
            "fileFTPDetails" : { "hostOrIP" : null,
                "id" : 2,
                "name" : null,
                "password" : null,
                "userName" : null
              },
            "fileLength" : 0,
            "fileLocation" : "local",
            "fileName" : "e:\\user\\codes\\eflow import 
files\\bulktest.csv",
            "fileNameCounter" : 0,
            "fileType" : { "category" : null,
                "id" : 0,
                "name" : "sep"
              },
            "filterForDB" : null,
            "id" : null,
            "keepNextLine" : false,
            "lastProcessedLine" : 0,
            "parentFolder" : null,
            "password" : null,
            "port" : null,
            "replaceExistingOrder" : false,
            "separator" : ",",
            "sequenceFieldNameForDB" : null,
            "serverName" : null,
            "sourceOsnColumn" : null,
            "startingLine" : 2,
            "tableName" : null,
            "userName" : null
          },
        "sourceType" : "File",
        "startOnPublicHoliday" : false,
        "startOnWeekend" : false,
        "startTime" : null,
        "status" : "Done",
        "taskMode" : "someValue",
        "taskType" : "someValue"
      }

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to