Using `ls -1` would work. 

The rationale for using json is that in this case I don't do any parsing --- all parsing is done by json library, which is IMO good because parsing is easy to do wrong in a subtle way. 

If I'd use `ls -1` parsing would be just to split lines which would be easy enough, so I could fix it.