Add .json when needed and add path manipulation methods