Adding flexibility to the json object mapper