Write a simple custom JSON decoder for Decco in ReasonML

InstructorMurphy Randle

Share this video with your friends

Send Tweet

Decco is a great library for automatically generating JSON encoders and decoders, but most real-world projects will quickly run into the need to add custom data types that Decco doesn't ship with support for. This lesson shows how to simply add a custom data type by implementing a codec that reads and writes Javascript dates as floats.