API Reference
Class
JsonValue
Represents a JSON value with a kind and raw value storage.
Inheritance
- Object
- JsonValue
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method JsonArray.GetEnumerator
- Property JsonArray.Item
- Method JsonLite.Parse
- Method JsonMapper.FromObject
- Method JsonObject.GetEnumerator
- Property JsonObject.Item
- Field JsonValue.Null
- Method JsonValue.From
- Method JsonValue.From
- Method JsonValue.From
- Method JsonValue.From
- Method AppServerClient.CallAsync
- Property ConfigEntry.Value
- Property ConfigLayer.Config
- Property ConfigLayerSourceInfo.Raw
- Property JsonRpcError.Data
- Property JsonRpcNotificationEventArgs.Params
- Property JsonRpcRequest.Params
- Property RpcCallStartedEventArgs.Parameters
Accepted by parameters
- Method JsonArray.Add
- Method JsonArray.AddRange
- Method JsonLite.Serialize
- Method JsonObject.Add
- Method JsonObject.TryGetValue
- Method AppServerClient.WriteConfigValueAsync
- Constructor ConfigEntry.ConfigEntry
- Constructor ConfigLayer.ConfigLayer
- Constructor ConfigLayerSourceInfo.ConfigLayerSourceInfo
- Method ConfigLayerSourceInfo.FromJson
- Constructor JsonRpcError.JsonRpcError
- Constructor JsonRpcNotificationEventArgs.JsonRpcNotificationEventArgs
- Method JsonRpcRequest.RespondAsync
- Method JsonRpcRequest.RespondErrorAsync
- Constructor RpcCallStartedEventArgs.RpcCallStartedEventArgs
- Method ToolOutputEnvelope.OkFlatObjectWithRenderValue
- Method ToolOutputEnvelope.OkFlatWithRenderValue
- Method ToolOutputEnvelope.OkObjectWithRenderValue
- Method ToolOutputEnvelope.OkWithRenderValue
Methods
public JsonArray AsArray() #Returns:
JsonArrayReads this value as a JSON array, or null if not an array.
public Boolean AsBoolean(Boolean defaultValue = false) #Returns:
BooleanReads this value as a boolean, returning defaultValue if not a boolean.
Parameters
- defaultValue System.Boolean = false
public Nullable<Double> AsDouble() #Returns:
Nullable<Double>Reads this value as a double when possible.
public Nullable<Int64> AsInt64() #Returns:
Nullable<Int64>Reads this value as a 64-bit integer when possible.
public JsonObject AsObject() #Returns:
JsonObjectReads this value as a JSON object, or null if not an object.
From 6 overloads
public static JsonValue From(JsonArray value) #Returns:
JsonValueCreates a boolean JSON value.
Parameters
- value System.Boolean
public static JsonValue From(String value) #Returns:
JsonValueCreates a string JSON value (or null if the input is null).
Parameters
- value System.String
public static JsonValue From(Int64 value) #Returns:
JsonValueCreates a numeric JSON value from a 64-bit integer.
Parameters
- value System.Int64
public static JsonValue From(Double value) #Returns:
JsonValueCreates a numeric JSON value from a double.
Parameters
- value System.Double
From(IntelligenceX.Json.JsonObject value) #Wraps a JSON object value.
Parameters
- value IntelligenceX.Json.JsonObject
From(IntelligenceX.Json.JsonArray value) #Wraps a JSON array value.
Parameters
- value IntelligenceX.Json.JsonArray
Inherited Methods
Properties
Fields
public static readonly JsonValue Null #Singleton null JSON value.