Refactoring emrcli json