Overview
Class
Use
Packages
Classes & Interfaces
Constant Field Values
Serialized Form
Search
Interface JsonKey
org.json.simple
JsonKey
Search for
Search page
public interface
JsonKey
Should be implemented by Enums so that keys are easily maintained.
Method Summary
All Methods
Modifier and Type
Method
Description
String
getKey
()
The json-simple library uses a String for its keys.
Object
getValue
()
A reasonable value for the key; such as a valid default, error value, or null.
Method Details
getKey
String
getKey
()
The json-simple library uses a String for its keys.
Returns:
a String representing the JsonKey.
getValue
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.