spring springboot how to return serialized json object

// example of returning object as JSON I guess
//  @GetMapping(path = "/world", produces = {APPLICATION_JSON_VALUE})
//  public ResponseEntity<ExampleMessage> getSimpleMessage() {
//    logger.info("Demonstrate Logging - Check Endpoint Called!");
//    ExampleMessage message = logic.displaySimpleMessage();
//    return new ResponseEntity<>(message, HttpStatus.OK);
//  }

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.