refactoring Json object mapper