unofficial mirror of meta@public-inbox.org
 help / color / mirror / Atom feed
* final "null" in "lei q" JSON output
@ 2021-03-11 22:43 Eric Wong
  2021-03-12  4:22 ` Kyle Meyer
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Wong @ 2021-03-11 22:43 UTC (permalink / raw)
  To: meta

The standard JSON (not line-delimited) output is an array with
a "null" element as the last element.

I don't really like it, but it seems necessary if we're
doing parallel writes to stdout and JSON doesn't allow
trailing commas.

So I don't think that part is considered part of the stable
output.

Maybe it could be tweaked to show stats, or something else,
I don't know.

Thoughts?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: final "null" in "lei q" JSON output
  2021-03-11 22:43 final "null" in "lei q" JSON output Eric Wong
@ 2021-03-12  4:22 ` Kyle Meyer
  0 siblings, 0 replies; 2+ messages in thread
From: Kyle Meyer @ 2021-03-12  4:22 UTC (permalink / raw)
  To: Eric Wong; +Cc: meta

Eric Wong writes:

> The standard JSON (not line-delimited) output is an array with
> a "null" element as the last element.
>
> I don't really like it, but it seems necessary if we're
> doing parallel writes to stdout and JSON doesn't allow
> trailing commas.

I dunno, it doesn't really bother me, and it seems like a fine solution
to the problem.

> So I don't think that part is considered part of the stable
> output.

I think that's fair enough.

> Maybe it could be tweaked to show stats, or something else,
> I don't know.

Nothing too useful comes to mind, but if someone does think of
something, substituting it for the trailing null makes sense to me.
Until then, my vote would be to leave the helpful creature be :)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-12  4:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 22:43 final "null" in "lei q" JSON output Eric Wong
2021-03-12  4:22 ` Kyle Meyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).