This is a pretty common way of streaming JSON objects. See: https://en.wikipedia.org/wiki/JSON_Streaming
But I agree that it's not part of the JSON standard, nor does it seem to be standardized anywhere else. On Mon, Aug 22, 2016 at 9:43 PM, Matt Harden <matt.har...@gmail.com> wrote: > The output is not a valid (single) JSON value. It's a number of JSON > values, separated by newlines. jq considers each of these values a separate > "input". There's nothing in the definition of JSON that makes this valid. > > On Mon, Aug 22, 2016 at 4:49 PM Edward Muller <edwar...@interlix.com> > wrote: > >> `go list -json std | jq` does not complain, which is my usual "is my json >> valid" test. >> >> On Sat, Aug 20, 2016 at 12:13 PM Lars Tørnes Hansen <lar...@gmail.com> >> wrote: >> >>> I expected that >>> go list -json std >>> ... would output a valid JSON document, because >>> go help list >>> writes: >>> The -json flag causes the package data to be printed in JSON format >>> instead of using the template format. >>> but ... >>> >>> - The JSON document is not a JSON array >>> - Between 2 JSON objects of type build.Package: A comma is missing >>> >>> go version go1.7 linux/amd64 >>> >>> Have I misunderstood something? >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "golang-nuts" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to golang-nuts+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.