The question is about correct handling of type miss matching in the json input.
So, I have simple class
class