code: function getName(str) {
  	var name = path.basename(str);
  	if (name.lastIndexOf('.') === -1) {
  		name += '.json';
  	}
  	return name;
  }
docs: Get the name of the JSON resource so the schema
  matches the source. The .json extension is added
  if it's missing from the filename.
  
  @param {String} str File name
  @return {String} The name of the file only.