Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Methods
  • Enum Constants
  • Annotation Type Elements
  • Deprecated Methods
    Method
    Description
    com.alibaba.fastjson2.annotation.JSONField.writeUsing()
    com.alibaba.fastjson2.JSON.toJavaObject(Object, Class<T>)
    since 2.0.4, please use JSON.to(Class, Object)
    com.alibaba.fastjson2.JSONArray.toJavaObject(Type)
    since 2.0.4, please use JSONArray.to(Type)
    com.alibaba.fastjson2.JSONObject.toJavaObject(TypeReference<T>, JSONReader.Feature...)
    since 2.0.4, please use JSONObject.to(Type, JSONReader.Feature...)
    com.alibaba.fastjson2.JSONObject.toJavaObject(Type, JSONReader.Feature...)
    since 2.0.4, please use JSONObject.to(Type, JSONReader.Feature...)
    com.alibaba.fastjson2.JSONPath.compile(String)
    com.alibaba.fastjson2.JSONReader.of(JSONReader.Context, byte[])
    com.alibaba.fastjson2.JSONReader.of(JSONReader.Context, char[])
    com.alibaba.fastjson2.JSONReader.of(JSONReader.Context, String)
    com.alibaba.fastjson2.JSONReader.ofJSONB(JSONReader.Context, byte[])
    com.alibaba.fastjson2.JSONWriter.decrementIdent()
     
    com.alibaba.fastjson2.JSONWriter.incrementIndent()
     
    com.alibaba.fastjson2.JSONWriter.println()
     
    com.alibaba.fastjson2.JSONWriter.writeReference(Object)
     
    com.alibaba.fastjson2.reader.ObjectReaderBean.checkAutoType(JSONReader, Class, long)
    com.alibaba.fastjson2.reader.ObjectReaderProvider.addAutoTypeDeny(String)
    com.alibaba.fastjson2.TypeReference.toJavaObject(JSONArray)
    since 2.0.4, please use TypeReference.to(JSONArray)
    com.alibaba.fastjson2.TypeReference.toJavaObject(JSONObject, JSONReader.Feature...)
    since 2.0.4, please use TypeReference.to(JSONObject, JSONReader.Feature...)
    com.alibaba.fastjson2.writer.ObjectWriterProvider.setCompatibleWithFieldName(boolean)
    only use compatible with fastjson 1.x
  • Deprecated Enum Constants
    Enum Constant
    Description
    com.alibaba.fastjson2.JSONReader.Feature.SupportAutoType
    com.alibaba.fastjson2.JSONWriter.Feature.MapSortField
    Use JSONWriter.Feature.SortMapEntriesByKeys instead.
    com.alibaba.fastjson2.JSONWriter.Feature.NotWriteEmptyArray
    use IgnoreEmpty
  • Deprecated Annotation Type Elements
    Annotation Type Element
    Description
    com.alibaba.fastjson2.annotation.JSONField.writeUsing()

Copyright © 2022–2024 Alibaba Group. All rights reserved.