All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.setl.json.patch.key.ObjectKey Maven / Gradle / Ivy

Go to download

An implementation of the Canonical JSON format with support for javax.json and Jackson

The newest version!
package io.setl.json.patch.key;

import io.setl.json.pointer.Pointer;

/**
 * An object property name as part of a pointer.
 */
public class ObjectKey extends Key {

  private final String escaped;


  /**
   * New instance.
   *
   * @param parent the parent key
   * @param key    the object key
   */
  public ObjectKey(Key parent, String key) {
    super(parent);
    escaped = Pointer.escapeKey(key);
  }


  @Override
  protected String getEscapedKey() {
    return escaped;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy