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