package Ġjsonify Ċ Ċ import Ġcom . fasterxml . jackson . databind . js ont ype . Basic Pol ymorphic Type Validator Ċ import Ġcom . fasterxml . jackson . module . kotlin . jackson ObjectMapper Ċ import Ġcom . fasterxml . jackson . module . kotlin . readValue Ċ Ċ fun Ġmain () Ġ{ ĊĠĠĠ Ġval Ġmapper Ġ= Ġj ack son ObjectMapper () ĊĠĠĠ Ġval Ġtype Validator Ġ= ĠBasic Pol ymorphic Type Validator . builder (). build () ĊĠĠĠ Ġmapper . activate Default Typing ( type Validator ) ĊĠĠĠ Ġval Ġoperation Ġ= Ġmapper . readValue < Operation >( serialized Operation ) ĊĠĠĠ Ġval Ġarray Ġ= Ġmapper . readValue < Array < Operation >>( serialized Array ) ĊĠĠĠ Ġprintln ( operation ) ĊĠĠĠ Ġprintln ( array . toList ()) Ċ } Ċ