Implement basic utils for converting models to json