aws-json.js
function(item) {
  var result;

  if (_.isArray(item)) {
    result = [];
    _.each(item, function(value) {
      result.push(parseItem(value));
    });
    return result;
  }

  /* otherwise */
  if (_.isObject(item)) {
    return parseObject(item);
  }

  /* otherwise -- just a normal (non-compound) item */
  return item;
}
function(item) {
  var result;

  if (_.isArray(item)) {
    result = [];
    _.each(item, function(value) {
      result.push(parseItem(value));
    });
    return result;
  }

  /* otherwise */
  if (_.isObject(item)) {
    return parseObject(item);
  }

  /* otherwise -- just a normal (non-compound) item */
  return item;
}
function ( item ) { var result ; if ( _ . isArray ( item ) ) { result = [ ] ; _ . each ( item , function ( value ) { result . push ( parseItem ( value ) ) ; } ) ; return result ; } /* otherwise */ if ( _ . isObject ( item ) ) { return parseObject ( item ) ; } /* otherwise -- just a normal (non-compound) item */ return item ; }
Parse an item - it might be an Array, an Object, or a POD.
Parse an item - it might be an Array an Object or a POD .