Class JsonPointerTracker

java.lang.Object
org.apache.johnzon.mapper.internal.JsonPointerTracker

public class JsonPointerTracker extends Object
Internal class to easily collect information about the 'depth' of a json object without having to eagerly construct it.

For use in recursive generator and parser method calls to defer string operations.

  • Field Details

  • Constructor Details

    • JsonPointerTracker

      public JsonPointerTracker(JsonPointerTracker parent, String currentNode)
      Parameters:
      parent - or null if this is the root object
      currentNode - the name of the attribute or "/" for the root object
    • JsonPointerTracker

      public JsonPointerTracker(JsonPointerTracker jsonPointer, int i)
      For Arrays and Lists.
      Parameters:
      jsonPointer - the json node
      i - current counter number
  • Method Details