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

Change-Id: I957d6bda626b8e749a99717b5c89c4db38a36bf8