Class PrettifyJsonSerializer

java.lang.Object
pl.put.poznan.jsontools.logic.PrettifyJsonSerializer
All Implemented Interfaces:
JsonSerializer

public class PrettifyJsonSerializer extends Object implements JsonSerializer
Class for formatting JSON output as a pretty string
  • Constructor Details

    • PrettifyJsonSerializer

      public PrettifyJsonSerializer()
  • Method Details

    • serialize

      public String serialize(com.fasterxml.jackson.databind.JsonNode jsonNode)
      Converts a JSON to a String
      Specified by:
      serialize in interface JsonSerializer
      Parameters:
      jsonNode - JSON to convert
      Returns:
      prettified String