docs: function(i, j){
                              /* moving for object */
                              if ($scope.node.type() === 'object'){
                                  var json = {},
                                      keys = Object.keys($scope.json),
                                      key1 = keys[i],
                                      key2 = keys[j];
  
                                  angular.forEach($scope.json, function(value, key){
                                      if (key == key2) {
                                          if (j > i){
                                              json[key2] = $scope.json[key2];
                                              json[key1] = $scope.json[key1];
                                          } else {
                                              json[key1] = $scope.json[key1];
                                              json[key2] = $scope.json[key2];
                                          }
                                      }
                                      else if (key != key1) json[key] = value;
                                  });
                                  $scope.json = json;
                              }
  
                              /* moving for array */
                              else if ($scope.node.type() === 'array'){
                                  var temp = $scope.json[i];
                                  $scope.json.splice(i, 1);
                                  $scope.json.splice(j, 0, temp);
                                  $scope.$apply($scope.refresh());
                              }
                          }