public class JsonNode extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Text.Json.Nodes.JsonNode
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=11.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.Nodes.JsonNode
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
JsonNode() |
JsonNode(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
JsonArray |
AsArray()
Invokes the .NET member AsArray.
|
JsonObject |
AsObject()
Invokes the .NET member AsObject.
|
JsonValue |
AsValue()
Invokes the .NET member AsValue.
|
static JsonNode |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into JsonNode, a cast assert is made to check if types are compatible. |
JsonNode |
DeepClone()
Invokes the .NET member DeepClone.
|
static boolean |
DeepEquals(JsonNode node1,
JsonNode node2)
Invokes the .NET member DeepEquals.
|
int |
GetElementIndex()
Invokes the .NET member GetElementIndex.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
Nullable_1 |
getOptions()
Gets the value of the .NET property Options.
|
JsonNode |
getParent()
Gets the value of the .NET property Parent.
|
java.lang.String |
GetPath()
Invokes the .NET member GetPath.
|
java.lang.String |
GetPropertyName()
Invokes the .NET member GetPropertyName.
|
JsonNode |
getRoot()
Gets the value of the .NET property Root.
|
JsonValueKind |
GetValueKind()
Invokes the .NET member GetValueKind.
|
static JsonNode |
Parse(Stream utf8Json,
Nullable_1 nodeOptions,
JsonDocumentOptions documentOptions)
Invokes the .NET member Parse.
|
static JsonNode |
Parse(java.lang.String json,
Nullable_1 nodeOptions,
JsonDocumentOptions documentOptions)
Invokes the .NET member Parse.
|
static Task_1 |
ParseAsync(Stream utf8Json,
Nullable_1 nodeOptions,
JsonDocumentOptions documentOptions,
CancellationToken cancellationToken)
Invokes the .NET member ParseAsync.
|
<T extends IJCOBridgeReflected> |
ReplaceWith(T value)
Invokes the .NET member ReplaceWith.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setParent(JsonNode Parent)
Sets the value of the .NET property Parent.
|
java.lang.String |
ToJsonString(JsonSerializerOptions options)
Invokes the .NET member ToJsonString.
|
void |
WriteTo(Utf8JsonWriter writer,
JsonSerializerOptions options)
Invokes the .NET member WriteTo.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public JsonNode()
throws java.lang.Throwable
java.lang.Throwablepublic JsonNode(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic JsonArray AsArray() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, OutOfMemoryException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic JsonObject AsObject() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, OutOfMemoryException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic JsonValue AsValue() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, OutOfMemoryException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic static JsonNode cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into JsonNode, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedJsonNode instancejava.lang.Throwable - in case of error during cast operationpublic JsonNode DeepClone() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean DeepEquals(JsonNode node1, JsonNode node2) throws java.lang.Throwable
node1 - the argument of type JsonNodenode2 - the argument of type JsonNodejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetElementIndex()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
ObjectDisposedException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
RankException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic Nullable_1 getOptions() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic JsonNode getParent() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String GetPath()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic java.lang.String GetPropertyName()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic JsonNode getRoot() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic JsonValueKind GetValueKind() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static JsonNode Parse(Stream utf8Json, Nullable_1 nodeOptions, JsonDocumentOptions documentOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException, JsonException, IndexOutOfRangeException
utf8Json - the argument of type StreamnodeOptions - the argument of type Nullable_1documentOptions - the argument of type JsonDocumentOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itJsonException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic static JsonNode Parse(java.lang.String json, Nullable_1 nodeOptions, JsonDocumentOptions documentOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, ArgumentNullException, JsonException, IndexOutOfRangeException
json - the argument of type java.lang.StringnodeOptions - the argument of type Nullable_1documentOptions - the argument of type JsonDocumentOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itJsonException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic static Task_1 ParseAsync(Stream utf8Json, Nullable_1 nodeOptions, JsonDocumentOptions documentOptions, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException
utf8Json - the argument of type StreamnodeOptions - the argument of type Nullable_1documentOptions - the argument of type JsonDocumentOptionscancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic <T extends IJCOBridgeReflected> void ReplaceWith(T value) throws java.lang.Throwable, ObjectDisposedException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, ArgumentException, ArgumentNullException, NullReferenceException, NotSupportedException, InvalidOperationException, KeyNotFoundException, OutOfMemoryException
T - the type of the generic argument Tvalue - the argument of type Tjava.lang.Throwable - if the call fails in the bridge or in the CLRObjectDisposedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setParent(JsonNode Parent) throws java.lang.Throwable
Parent - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String ToJsonString(JsonSerializerOptions options) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ArgumentNullException, NotSupportedException, OutOfMemoryException, ObjectDisposedException, ArrayTypeMismatchException
options - the argument of type JsonSerializerOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itArgumentNullException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itObjectDisposedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions options) throws java.lang.Throwable
writer - the argument of type Utf8JsonWriteroptions - the argument of type JsonSerializerOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLR