Fix json directory route