Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Dealing with JSON Data in a Strongly Typed Application

React Conferences by GitNation via YouTube

Overview

Explore strategies for handling JSON data in strongly typed applications through this 21-minute conference talk by Lucas Twisk. Discover the challenges of pushing JSON objects from servers to view components in JavaScript, even with type systems like Flow, ReasonML, or TypeScript. Learn about runtime errors that can occur when server data differs from expectations and how to prevent them. Examine available solutions for validating server data early and handling invalid cases gracefully. Delve into a specific approach using TypeScript Compiler API to generate typed JSON decoders from TypeScript interfaces, as implemented in a React Native application. Gain insights into topics such as React Native, parsing JSON, TypeScript, JSON schema validation, JSON decoders, and code generation techniques.

Syllabus

Intro
Runner App
React Native
Parse JSON
Errors
Problems
Typescript
JSON Schema Validation
JSON Decoders
JSON Decoder Example
JSON Decoder Pros and Cons
JSON Decoder Generator
Code overview
Adding properties

Taught by

React Conferences by GitNation

Reviews

Start your review of Dealing with JSON Data in a Strongly Typed Application

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.