Check-in [9d21c5712a]
Not logged in

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
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);



Mac journal software
How to write a journal