> I believe https://golang.org/pkg/encoding/json/#Decoder.Buffered was added for this purpose.
I just caught on that this method is exactly what you showed in the original message. I guess my input can be reduced to "I think that's your only option when using the decoder". I do think you've correctly identified they the buffer isn't guaranteed to contain the whole object since the decoder has early exit error conditions. I'm not sure how you'd change that without rewriting the decoder. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
