Learn some of the most important JSON serialization settings that impact you when creating APIs.
- [Instructor] We've already seen how Web API can serialize…to JSON or XML.…One of the most important ways to control that serialization…is with the serialization settings of Json.NET.…Json.NET is the serialization library that Web API uses…by default.…Let's look at a few of those settings that I think will be…the most useful to know about when you're creating…an API project.…DateTimes and .NET can have one of several different…kinds associated with them.…
Local, UTC, or unspecified.…A local DateTime means that the time represents a time…in the current computer's local timezone, in this case…that would mean the web server.…UTC is universal coordinated time, sometimes known by its…old name GMT or Greenwich Mean Time.…This is the plus or minus zero timezone that all other…timezones are coordinated against.…So it's a good timezone to use if you want to store…all of your DateTimes in the same zone for comparison sake.…
Finally, an unspecified DateTime means that the type…was never specified.…Json.NET serializes our DateTime objects to strings…
AuthorJonathan "J." Tower
- Convention-based routing
- Binding your code to an HTTP request
- Validating models
- Using attributes to route requests
- Customizing attribute routes
- Data serialization and model binding
- Error handling
- Using exception filters and exception loggers
- API documentation and testing
- Securing your API
Skill Level Beginner
1. Controllers and Actions
3. Data Serialization and Model Binding
4. Error Handling
5. API Documentation and Testing
Next steps1m 38s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.