def METHOD_NAME(self, obj):
    """
    Exports a GeneralItem instance or a list of GeneralItem instances (both variants
     must be supported) to JSON used for internal storage (i.e. no client-side stuff)
    """