Add async Writer to support pub&mpub

Add async Writer to support pub&mpub and fix JSONDecodeError