Element.toJSON

convenient method to get a json representation of an element (or stanza).