In this chapter, we'll learn how to work with JSON by building a simple customer management application. This application lives within the /customers route of our existing app and can create, read, and update customers. JSON data persists to localStorage. Throughout this chapter, we convert external JSON into a typed data structure that Reason can understand in two different ways:
- Using pure Reason
- Using the bs-json library
We'll compare and contrast each method at the end of the chapter. We'll also discuss how GraphQL can help provide a pleasant developer experience when working with JSON in a statically typed language such as Reason.
To follow along with building the customer management application, clone this book's GitHub repository and start from Chapter07/app-start:
git clone https://github.com/PacktPublishing/ReasonML-Quick-Start-Guide...