cmd/cue: prefer ndjson over ldjson
Per https://github.com/ndjson/ndjson-spec/issues/3 in 2014,
the ldjson spec (line-delimited JSON) was renamed to ndjson
(newline-delimited JSON) and so we should use the newer extension.
We already supported loading files with the ndjson extension,
but `cue import` still only supported ldjson.
Use ndjson in all the documentation and examples,
but continue to support ldjson for backwards compatibility.
Any non-encoding tests which used ldjson files now use ndjson files
for the sake of consistency.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Iff4a853ed5cfc34aaecece523782c4154e3e6e63
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199412
Reviewed-by: Matthew Sackman <matthew@cue.works>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>