001/* ============ 002 * Orson Charts 003 * ============ 004 * 005 * (C)opyright 2013, 2014, by Object Refinery Limited. 006 * 007 * http://www.object-refinery.com/orsoncharts/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 * com.orsoncharts.util.json.* to avoid conflicts with any other version that 020 * may be present on the classpath. 021 * 022 */ 023 024package com.orsoncharts.util.json; 025 026/** 027 * Classes that support customized output of JSON text shall implement this 028 * interface. 029 * <br><br> 030 * This class is for internal use by Orson Charts, it is not 031 * part of the supported API and you should not call it directly. If you need 032 * JSON support in your project you should include JSON.simple 033 * (https://code.google.com/p/json-simple/) or some other JSON library directly 034 * in your project. 035 */ 036public interface JSONAware { 037 038 /** 039 * Returns a JSON string representing the object. 040 * 041 * @return A JSON string. 042 */ 043 String toJSONString(); 044}