Skip to content

Latest commit

 

History

History

OpaqueValue

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Representing arbitrary data as an opaque Codable type

This example app illustrate the concept of an opaque Codable type that can represent arbitrary (Codable) data. E.g some arbitrary JSON. The type consists of one or more primitive types and/or one or more nested opaque values.

This code is heavily inspired Rob Napier's answer to this StackOverflow post.