Class JsonKey

java.lang.Object
io.helidon.json.JsonKey

public final class JsonKey extends Object
A precomputed JSON object key.

The key keeps pre-escaped character and UTF-8 representations so repeated object-field writes can avoid re-encoding the property name on each serialization call.

  • Method Details

    • create

      public static JsonKey create(String value)
      Create a new precomputed JSON key.
      Parameters:
      value - raw key value
      Returns:
      precomputed key
    • value

      public String value()
      Raw key value without JSON quoting.
      Returns:
      raw key value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object