001package org.json.simple; 002 003/** Should be implemented by Enums so that keys are easily maintained. 004 * @since 2.3.0 */ 005public interface JsonKey{ 006 /** The json-simple library uses a String for its keys. 007 * @return a String representing the JsonKey. */ 008 public String getKey(); 009 010 /** A reasonable value for the key; such as a valid default, error value, or null. 011 * @return an Object representing a reasonable general case value for the key. */ 012 public Object getValue(); 013}