Pass msg as JSON dict