encode bool on/off
encode card orientation
encode corner style
encode display style
encode index style
encode shake action
encode auto play
add helper mutable dictionary class with stable key ordering (based on insertion order)
add serialization to JSON
extract helper class for enum serialization/deserialization
simplify JSON enum serialization/deserialization