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