serializes the current portlet state to a JSON object
var state = $$("portlets").serialize(serializer);