protected JSONValue serialize( Object value )
	{
		if( value instanceof String )
		{
			return serializeJSONString((String)value);
			
		} else if( value instanceof Number ) {
			
			return serializeJSONNumber((Number)value);
			
		} else if( value instanceof Boolean) {
			
			return serializeJSONBoolean((Boolean)value);
			
		} else if( value instanceof Object[]) {
			
			return serializeJSONArray((Object[])value);
		} else if( value instanceof JSONValue) {
			return (JSONValue) value;
		}
		
		return null;
	}