Added String.serializeAttributes(obj)