Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 9d21c5712ab8ec00ba5611b6a37e2dc0fa914dfe |
|---|---|
| Date: | 2009-11-12 19:36:12 |
| User: | dmitry |
| Comment: | Change comment about Twitter's JSON |
Tags And Properties
- branch=trunk inherited from [160484ace7]
- sym-trunk inherited from [160484ace7]
Changes
Changes to src/twitter.go
@@ -63,11 +63,11 @@
acc.Password = pwd;
return &Twitter{acc};
}
func unmarshalTwitterJSON(s string) Timeline {
- // Twitter sends malformed JSON, with top-level array.
+ // Twitter sends JSON with top-level array, but Go's json can't unmarshall it.
// Workaround: put it under 'tweets'.
s = `{"tweets" : ` + s + `}`;
var timeline Timeline;
json.Unmarshal(s, &timeline);