code: function(array, json) {
          var i;
          if (typeof json === 'object' && typeof json.length === 'number') {
              for (i = 0; i < json.length; ++i) {
                  array.push(json[i]);
              }
          } else {
              array.push(json);
          }
      }
docs: private jDoc functions