Controlling JSON Processing
Explore how to customize JSON processing in C#, including including or excluding fields, setting casing policies, and formatting output with System.Text.Json. Learn to serialize objects with various options and understand the impact on JSON size and readability.
There are many options for taking control of how JSON is processed, as shown in the following list:
Including and excluding fields.
Setting a casing policy.
Selecting a case-sensitivity policy.
Choosing between compact and prettified whitespace.
Working with JSON serialization
Let’s see some in action:
Step 1: Use your preferred code editor to add a new Console App or console project named WorkingWithJson to the Chapter09 solution or workspace. ...