Class Json

java.lang.Object
com.shaft.commandline.util.Json

public final class Json extends Object
Shared Jackson 3 mapper and small JSON helpers used across the CLI.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final tools.jackson.databind.json.JsonMapper
    The single shared JSON mapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    static tools.jackson.databind.node.ObjectNode
     

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MAPPER

      public static final tools.jackson.databind.json.JsonMapper MAPPER
      The single shared JSON mapper.
  • Method Details

    • newObject

      public static tools.jackson.databind.node.ObjectNode newObject()
      Returns:
      a new empty JSON object node