Skip to content

Commit c3cb6df

Browse files
committed
Merge branch 'main' of github.com:gregsdennis/json-everything-docs
2 parents 63112c6 + aff2014 commit c3cb6df

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.jekyll-metadata

2.09 KB
Binary file not shown.

_docs/schema/basics.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ There are two options when building a schema: defining it inline using the fluen
5050

5151
## Serialization and Deserialization {#schema-deserialization}
5252

53-
_JsonSchema.Net_ schemas are fully serializable.
53+
Serialization is how we convert between the textual representation of JSON Schema and a `JsonSchema` .Net object. In many cases, you'll compose your schemas in separate JSON files and deserialize them into the `JsonSchema` model. However if you [define your schemas in code](#schema-inlining) or [generate them from a type](/schema/schemagen/schema-generation/) you won't have a textual representation of those schemas on hand.
54+
55+
To facilitate this, _JsonSchema.Net_ schemas are fully serializable.
5456

5557
```c#
5658
var mySchema = JsonSchema.FromText(content);
@@ -64,6 +66,9 @@ var mySchema = JsonSerializer.Deserialize<JsonSchema>(content);
6466

6567
Done.
6668

69+
> You can either use the JSON serializer as shown above, or the YAML serializer found in [_Yaml2JsonNode_](/yaml/basics/).
70+
{: .prompt-tip}
71+
6772
### Ahead of Time (AOT) compatibility {#aot}
6873

6974
_JsonSchema.Net_ v6 includes updates to support [Native AOT applications](https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/). In order to take advantage of this, there are a few things you'll need to do.

0 commit comments

Comments
 (0)