logs: output real JSON when --raw is specified

makes the "raw" output actually parseable