Require object class to generate JSON string representation.