docs: function(key, value){
                              var json = null;
                              try { json = JSON.parse(value); } catch (e){} //try get json
                              if (json === null) json = $scope.utils.tryGetFunction(value) || json; //try get function
  
                              /* add element to the object */
                              if ($scope.node.type() === 'object') {
                                  if (json !== null){
                                      $scope.json[key] = json
                                  } else {
                                      $scope.json[key] = value
                                  }
  
                              }
                              /* add element(s) to the array */
                              else if ($scope.node.type() === 'array') {
                                  if (json !== null) {
                                      if (json.constructor === Array){
                                          /* push new array elements to the array */
                                          $scope.json.push.apply($scope.json, json);
                                      } else {
                                          /* push single element to the array */
                                          $scope.json.push(json);
                                      }
                                  } else {
                                      $scope.json.push(value);
                                  }
                              }
                              $scope.refresh();
                          }