#207. Adding support of custom json deserialization. Implementing tests for new functionality