Interface JsonKey
-
public interface JsonKey
Represents the key of a JsonObject. Utilizing JsonKeys allows many of the convenience methods that self document your JSON data model and make refactoring easier. It is recommended to implement JsonKeys as an enum.- Since:
- 2.3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getKey()
The json-simple library uses a String for its keys.java.lang.Object
getValue()
A reasonable value for the key; such as a valid default, error value, or null.
-
-
-
Method Detail
-
getKey
java.lang.String getKey()
The json-simple library uses a String for its keys.- Returns:
- a String representing the JsonKey.
-
getValue
java.lang.Object getValue()
A reasonable value for the key; such as a valid default, error value, or null.- Returns:
- an Object representing a reasonable general case value for the key.
-
-