Added possibility to register custom type adapters for Json (de-)serialization.