Class PrettyStringConverter

java.lang.Object
de.christofreichardt.json.websignature.PrettyStringConverter
All Implemented Interfaces:
Json2StringConverter

public class PrettyStringConverter extends Object implements Json2StringConverter
A formatter of JsonStructures. Uses internally the JsonGenerator.PRETTY_PRINTING facility.
Author:
Christof Reichardt
  • Constructor Details

    • PrettyStringConverter

      public PrettyStringConverter()
  • Method Details

    • convert

      public String convert(jakarta.json.JsonStructure jsonStructure)
      Description copied from interface: Json2StringConverter
      Converts predictably the given JsonStructure into a string.
      Specified by:
      convert in interface Json2StringConverter
      Parameters:
      jsonStructure - the to be converted JsonStructure.
      Returns:
      a string representation of the given JsonStructure.