io.setl.json.patch.key.ObjectKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of canonical-json Show documentation
Show all versions of canonical-json Show documentation
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