logs: output real JSON when --raw is specified