emit does not need surrounding array bracket.
Still, R's toJSON is not really good...