support json formatting for ls