#Decoder

1 articles

08 How To Use Streaming Decoder

08 How To Use Streaming Decoder

Introduction to Stream Decoder

In the previous article, we studied the JSON package by using conversion of JSON data which was already in the form of variables and string data or we used []byte. Sometimes the JSON data comes from input in the form of io.Reader, which can be in the form of a file, network or request body. So we could just read all the data first, then store it in a variable and then convert it from JSON, but we don’t need to do this because the JSON package has a feature for reading data from Stream.