public class JsonSerializerOptions extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Text.Json.JsonSerializerOptions
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Text.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Text.Json
|
static java.lang.String |
className
Qualified class name: System.Text.Json.JsonSerializerOptions
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
JsonSerializerOptions() |
JsonSerializerOptions(JsonSerializerDefaults defaults) |
JsonSerializerOptions(JsonSerializerOptions options) |
JsonSerializerOptions(java.lang.Object instance)
Internal constructor.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public JsonSerializerOptions()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException
public JsonSerializerOptions(JsonSerializerDefaults defaults) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException
public JsonSerializerOptions(JsonSerializerOptions options) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
public JsonSerializerOptions(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static JsonSerializerOptions cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into JsonSerializerOptions, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedJsonSerializerOptions instancejava.lang.Throwable - in case of error during cast operationpublic boolean getAllowDuplicateProperties()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getAllowOutOfOrderMetadataProperties()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getAllowTrailingCommas()
throws java.lang.Throwable
java.lang.Throwablepublic JsonConverter GetConverter(NetType typeToConvert) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException, OutOfMemoryException, MissingMethodException, TargetInvocationException, KeyNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionFormatExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionKeyNotFoundExceptionpublic static JsonSerializerOptions getDefault() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, NullReferenceException, NotSupportedException
public int getDefaultBufferSize()
throws java.lang.Throwable
java.lang.Throwablepublic JsonIgnoreCondition getDefaultIgnoreCondition() throws java.lang.Throwable
java.lang.Throwablepublic JsonNamingPolicy getDictionaryKeyPolicy() throws java.lang.Throwable
java.lang.Throwablepublic JavaScriptEncoder getEncoder() throws java.lang.Throwable
java.lang.Throwablepublic boolean getIgnoreNullValues()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIgnoreReadOnlyFields()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIgnoreReadOnlyProperties()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIncludeFields()
throws java.lang.Throwable
java.lang.Throwablepublic char getIndentCharacter()
throws java.lang.Throwable
java.lang.Throwablepublic int getIndentSize()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsReadOnly()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic int getMaxDepth()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getNewLine()
throws java.lang.Throwable
java.lang.Throwablepublic JsonNumberHandling getNumberHandling() throws java.lang.Throwable
java.lang.Throwablepublic JsonObjectCreationHandling getPreferredObjectCreationHandling() throws java.lang.Throwable
java.lang.Throwablepublic boolean getPropertyNameCaseInsensitive()
throws java.lang.Throwable
java.lang.Throwablepublic JsonNamingPolicy getPropertyNamingPolicy() throws java.lang.Throwable
java.lang.Throwablepublic JsonCommentHandling getReadCommentHandling() throws java.lang.Throwable
java.lang.Throwablepublic ReferenceHandler getReferenceHandler() throws java.lang.Throwable
java.lang.Throwablepublic boolean getRespectNullableAnnotations()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getRespectRequiredConstructorParameters()
throws java.lang.Throwable
java.lang.Throwablepublic static JsonSerializerOptions getStrict() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, NullReferenceException, NotSupportedException
public JsonTypeInfo GetTypeInfo(NetType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, NullReferenceException, CultureNotFoundException, KeyNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionCultureNotFoundExceptionKeyNotFoundExceptionpublic IJsonTypeInfoResolver getTypeInfoResolver() throws java.lang.Throwable
java.lang.Throwablepublic JsonUnknownTypeHandling getUnknownTypeHandling() throws java.lang.Throwable
java.lang.Throwablepublic JsonUnmappedMemberHandling getUnmappedMemberHandling() throws java.lang.Throwable
java.lang.Throwablepublic static JsonSerializerOptions getWeb() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, NullReferenceException, NotSupportedException
public boolean getWriteIndented()
throws java.lang.Throwable
java.lang.Throwablepublic void MakeReadOnly()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
ObjectDisposedException
public void MakeReadOnly(boolean populateMissingResolver)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
NullReferenceException,
ArgumentNullException,
IndexOutOfRangeException,
EventSourceException,
ArrayTypeMismatchException,
InvalidOperationException
public void setAllowDuplicateProperties(boolean AllowDuplicateProperties)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setAllowOutOfOrderMetadataProperties(boolean AllowOutOfOrderMetadataProperties)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setAllowTrailingCommas(boolean AllowTrailingCommas)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setDefaultBufferSize(int DefaultBufferSize)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setDefaultIgnoreCondition(JsonIgnoreCondition DefaultIgnoreCondition) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
public void setDictionaryKeyPolicy(JsonNamingPolicy DictionaryKeyPolicy) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
public void setEncoder(JavaScriptEncoder Encoder) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
public void setIgnoreNullValues(boolean IgnoreNullValues)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setIgnoreReadOnlyFields(boolean IgnoreReadOnlyFields)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setIgnoreReadOnlyProperties(boolean IgnoreReadOnlyProperties)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setIncludeFields(boolean IncludeFields)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setIndentCharacter(char IndentCharacter)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setIndentSize(int IndentSize)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setMaxDepth(int MaxDepth)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setNewLine(java.lang.String NewLine)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
public void setNumberHandling(JsonNumberHandling NumberHandling) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
public void setPreferredObjectCreationHandling(JsonObjectCreationHandling PreferredObjectCreationHandling) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
public void setPropertyNameCaseInsensitive(boolean PropertyNameCaseInsensitive)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setPropertyNamingPolicy(JsonNamingPolicy PropertyNamingPolicy) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
public void setReadCommentHandling(JsonCommentHandling ReadCommentHandling) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
public void setReferenceHandler(ReferenceHandler ReferenceHandler) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
public void setRespectNullableAnnotations(boolean RespectNullableAnnotations)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setRespectRequiredConstructorParameters(boolean RespectRequiredConstructorParameters)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public void setTypeInfoResolver(IJsonTypeInfoResolver TypeInfoResolver) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
public void setUnknownTypeHandling(JsonUnknownTypeHandling UnknownTypeHandling) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
public void setUnmappedMemberHandling(JsonUnmappedMemberHandling UnmappedMemberHandling) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
public void setWriteIndented(boolean WriteIndented)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException
public boolean TryGetTypeInfo(NetType type, JCORefOut<JsonTypeInfo> typeInfo) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, NullReferenceException, CultureNotFoundException, KeyNotFoundException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionCultureNotFoundExceptionKeyNotFoundException