
com.googlecode.fascinator.common.JsonObject Maven / Gradle / Ivy
/*
* $Id: JSONObject.java,v 1.1 2006/04/15 14:10:48 platform Exp $
* Created on 2006-4-10
*/
package com.googlecode.fascinator.common;
import java.io.IOException;
import java.io.Writer;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import org.json.simple.JSONAware;
import org.json.simple.JSONStreamAware;
import org.json.simple.JSONValue;
/**
*
* This class is and all code is a direct copy of the org.json.simple.JSONObject
* implementation found here:
* http://json-simple.googlecode.com/svn/trunk/src/org
* /json/simple/JSONObject.java
*
*
*
* It has been duplicated for the sole purpose of moving to a LinkedHashMap to
* preserve order. All credit must go to the original authors.
*
*
*
* Because JSONValue.escape() is inaccessible from outside the original package
* it needed to be added to the end of the class as well.
*
*
* A JSON object. Key value pairs are unordered. JSONObject supports
* java.util.Map interface.
*
* @author FangYidong
*
*/
public class JsonObject extends LinkedHashMap
© 2015 - 2025 Weber Informatics LLC | Privacy Policy