moves jsons into D,R, and O (other) directories