|
| static string | ToCamelCase (string name) |
| | Converts a string to camelCase format, e.g. "FileSize" => "fileSize" and "SQLQuery" => "sqlQuery". Assignable to Options.NameConverter. More...
|
| |
|
static SyncJson.Reader | NewReader (IScanner< byte > input, Options?options=null) |
| |
|
static SyncJson.Reader | NewReader (ReadOnlyMemory< byte > input, Options?options=null) |
| |
|
static SyncJson.Reader | NewReader (string input, Options?options=null) |
| |
|
static T | Read< T > (ReadOnlyMemory< byte > json, SyncObjectFunc< Reader, T > sync, Options?options=null) |
| |
|
static T | ReadI< T > (ReadOnlyMemory< byte > json, SyncObjectFunc< ISyncManager, T > sync, Options?options=null) |
| |
|
static T | Read< T, SyncObject > (ReadOnlyMemory< byte > input, SyncObject sync, Options?options=null) |
| |
|
static T | Read< T > (string json, SyncObjectFunc< Reader, T > sync, Options?options=null) |
| |
|
static T | ReadI< T > (string json, SyncObjectFunc< ISyncManager, T > sync, Options?options=null) |
| |
|
static T | Read< T, SyncObject > (string json, SyncObject sync, Options?options=null) |
| |
| static SchemaWriter | NewSchemaWriter (Options?options=null) |
| | Creates a SyncJson.SchemaWriter, an object for saving a JSON Schema that describes the JSON produced by SyncJson.Writer. After using it to "synchronize" one root object, call SchemaWriter.Finish (or ToString) to get the schema document. More...
|
| |
| static ReadOnlyMemory< byte > | WriteSchema< T > (SyncObjectFunc< SchemaWriter, T > sync, Options?options=null) |
| | Generates a JSON Schema (draft 2020-12, UTF-8) describing the JSON that SyncJson.Write{T}(T, SyncObjectFunc{Writer, T}, Options?) produces for type T with the same synchronizer and options. More...
|
| |
|
static ReadOnlyMemory< byte > | WriteSchemaI< T > (SyncObjectFunc< ISyncManager, T > sync, Options?options=null) |
| |
|
static ReadOnlyMemory< byte > | WriteSchema< T, SyncObject > (SyncObject sync, Options?options=null) |
| |
|
static string | WriteSchemaString< T > (SyncObjectFunc< SchemaWriter, T > sync, Options?options=null) |
| |
|
static string | WriteSchemaStringI< T > (SyncObjectFunc< ISyncManager, T > sync, Options?options=null) |
| |
|
static string | WriteSchemaString< T, SyncObject > (SyncObject sync, Options?options=null) |
| |
|
static SyncJson.Writer | NewWriter (IBufferWriter< byte >?output=null, Options?options=null) |
| |
|
static ReadOnlyMemory< byte > | Write< T > (T value, SyncObjectFunc< Writer, T > sync, Options?options=null) |
| |
|
static ReadOnlyMemory< byte > | WriteI< T > (T value, SyncObjectFunc< ISyncManager, T > sync, Options?options=null) |
| |
|
static ReadOnlyMemory< byte > | Write< T, SyncObject > (T value, SyncObject sync, Options?options=null) |
| |
|
static string | WriteString< T > (T value, SyncObjectFunc< Writer, T > sync, Options?options=null) |
| |
|
static string | WriteStringI< T > (T value, SyncObjectFunc< ISyncManager, T > sync, Options?options=null) |
| |
|
static string | WriteString< T, SyncObject > (T value, SyncObject sync, Options?options=null) |
| |
| static ReadOnlyMemory<byte> SyncJson.WriteSchema< T > |
( |
SyncObjectFunc< SchemaWriter, T > |
sync, |
|
|
Options? |
options = null |
|
) |
| |
|
inlinestatic |
Generates a JSON Schema (draft 2020-12, UTF-8) describing the JSON that SyncJson.Write{T}(T, SyncObjectFunc{Writer, T}, Options?) produces for type T with the same synchronizer and options.
The synchronizer function runs once in SyncMode.Schema mode, in which there is no data: the function receives a default/null value of T, and the Sync methods return default values. Fields that the function only synchronizes conditionally are recorded only if the condition happens to be true when given default values.
References NewSchemaWriter().