001/* ===========================================================
002 * JFreeChart : a free chart library for the Java(tm) platform
003 * ===========================================================
004 *
005 * (C) Copyright 2000-2020, by Object Refinery Limited and Contributors.
006 *
007 * Project Info:  http://www.jfree.org/jfreechart/index.html
008 *
009 * JSON.simple
010 * -----------
011 * The code in this file originates from the JSON.simple project by 
012 * FangYidong<fangyidong@yahoo.com.cn>:
013 * 
014 *     https://code.google.com/p/json-simple/
015 *  
016 * which is licensed under the Apache Software License version 2.0.  
017 * 
018 * It has been modified locally and repackaged under 
019 * org.jfree.data.json.impl.* to avoid conflicts with any other version that
020 * may be present on the classpath.
021 * 
022 */
023
024package org.jfree.data.json.impl;
025
026
027/**
028 * Classes that support customized output of JSON text shall implement this 
029 * interface.
030 * <br><br>
031 * This class is for internal use by JFreeChart, it is not 
032 * part of the supported API and you should not call it directly.  If you need
033 * JSON support in your project you should include JSON.simple 
034 * (https://code.google.com/p/json-simple/) or some other JSON library directly
035 * in your project.
036 */
037public interface JSONAware {
038    
039    /**
040     * Returns a JSON string representing the object.
041     * 
042     * @return A JSON string.
043     */
044    String toJSONString();
045
046}