/*
 * Copyright 1999-2101 Alibaba Group.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.alibaba.fastjson.serializer;

import java.io.IOException;
import java.lang.reflect.Type;

/**
 * @author wenshao[szujobs@hotmail.com]
 */
public interface JSONSerializable {
    void write(JSONSerializer serializer, Object fieldName, Type fieldType, int features) throws IOException;
}

@@ -787,83 +787,351 @@
 e %7B%0A
-    void write(JSONSerializer serializer, Object fieldName, Type fieldType,
+%0A    /**%0A     * write to json%0A     * @param serializer json seriliazer%0A     * @param fieldName field name%0A     * @param fieldType field type%0A     * @param features field features%0A     * @throws IOException%0A     */%0A    void write(JSONSerializer serializer, //%0A               Object fieldName, //%0A               Type fieldType, //%0A              
  int
@@ -1139,16 +1139,24 @@
 features
+ //%0A    
 ) throws

add java doc