parses dotfile and returns json