Add JSON deserialization constructors to object model classes

This change is restricted to preliminary features.