You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current marshalling and unmarshalling functions in the jsonapi subpackage operate on byte slices exclusively. I think it would be very convenient if there were functions available to operate on io.Readers and io.Writers as well.
The encoding/json library exposes this through the Encoder and Decoder objects, which take an io.Reader or an io.Writer as arguments. Would it make sense to expose a similar API? If there's interest in this upstream, I would be happy to submit a PR!
The text was updated successfully, but these errors were encountered:
velovix
changed the title
Add option to unmarshal from an io.Reader and marshal to an io.Writer
jsonapi: Add option to unmarshal from an io.Reader and marshal to an io.Writer
May 28, 2019
The current marshalling and unmarshalling functions in the jsonapi subpackage operate on byte slices exclusively. I think it would be very convenient if there were functions available to operate on io.Readers and io.Writers as well.
The
encoding/json
library exposes this through the Encoder and Decoder objects, which take an io.Reader or an io.Writer as arguments. Would it make sense to expose a similar API? If there's interest in this upstream, I would be happy to submit a PR!The text was updated successfully, but these errors were encountered: