Use JosnUtils.jsonToMap so that the cast does not need to be done manually.