Add support to convert POJO to JSON