Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Although actually, for streaming maybe it would still be 2 lines but from jsontext..

dec := jsontext.NewDecoder(in)

json.UnmarshalDecode(in, &bob)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: