Refactored list method and added json representation of project list