Conditional JSON decoder with optional fields

at ["type", "name"] string
    |> andThen decodeRecordTypeDetails

No, it will not. It would operate on the root object. Here is an ellie that demonstrates that it works.

4 Likes