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
go version go1.5 linux/386
Debian 3.9.4-1 i686 GNU/Linux
package : encoding/json
file : stream.go
There is not enough public methods and public constants to control decode flow.
In other languages implementation of streaming processing json data is generaly based on constants token/event and methods : next() , hasNext(), getString() , getInt, getLong , getDecimal
I suggest extend and make public set of constants :
What you're proposing is already possible with the current API.
Just do a type assertion on the Token returned from the Token()
method.
Anyway, we can't change the API now due to Go 1 API stability
guarantee.
go version go1.5 linux/386
Debian 3.9.4-1 i686 GNU/Linux
package : encoding/json
file : stream.go
There is not enough public methods and public constants to control decode flow.
In other languages implementation of streaming processing json data is generaly based on constants token/event and methods : next() , hasNext(), getString() , getInt, getLong , getDecimal
I suggest extend and make public set of constants :
and change method : func (dec *Decoder) Token() (Token, error) which must return only constant.
The text was updated successfully, but these errors were encountered: