JSONContent: Use self() instead of explicit class name to support subclasses