BJSON
Identità
Namespace:
B.BStaticsAssembly:
BFrameworkTipo: class
Sorgente API: versione
5.0.0
Scopo
Espone operazioni statiche riutilizzabili tramite BJSON. Consultare gli overload prima di introdurre una funzione equivalente.
Dichiarazione
public static class BJSON
Campi e costanti
| Nome | Tipo | Natura |
|---|---|---|
DefaultOptions |
JsonSerializerOptions |
static |
DefaultOptionsSettingFile |
JsonSerializerOptions |
static |
Metodi
static T? Deserialize<T>(string json, JsonSerializerOptions? options = null)static object? Deserialize(string json, Type type, JsonSerializerOptions? options = null)static string? GetJsonText(string PathFileJson)static T? GetValue<T>(string Json, string path)static string? GetValueFromJson(string PathFileJson, string key)static string? GetValueFromJsonText(string Json, string key)static string Serialize(object obj, JsonSerializerOptions? options = null)
Esempi
Consultare BJSON - Esempi.
Firme pubbliche estratte dal sorgente
B.BStatics.BJSON
B.BStatics.BJSON.DefaultOptions
B.BStatics.BJSON.DefaultOptionsSettingFile
B.BStatics.BJSON.Serialize(object, System.Text.Json.JsonSerializerOptions?)
B.BStatics.BJSON.Deserialize<T>(string, System.Text.Json.JsonSerializerOptions?)
B.BStatics.BJSON.Deserialize(string, System.Type, System.Text.Json.JsonSerializerOptions?)
B.BStatics.BJSON.GetValue<T>(string, string)
B.BStatics.BJSON.GetValue<T>(System.Text.Json.JsonDocument, string)
B.BStatics.BJSON.GetJsonText(string)
B.BStatics.BJSON.GetValueFromJson(string, string)
B.BStatics.BJSON.GetValueFromJsonText(string, string)
<!-- BAIDocs:API:fine -->
