Status: Accepted
Owner:
slauri...@gmail.com
Labels: Type-Defect Priority-Medium
New issue 112 by
slauri...@gmail.com: Empty field in ActivityEntry /
TweetData raising parsing issue
http://code.google.com/p/webreformatter/issues/detail?id=112
The field "attributes":{ }, seems to create an endless loop when trying to
turn the JSON below into an ActivityEntry (removing it solves the issue)
{
"id":"twitter.com:_3191152619559976960",
"published":"2012-04-14T13:15:10+0000",
"title":"RT @mircopz: Lun 16 Aprile presso la facoltà d'ingegneria di
#Ancona, incontro con @zacchiro su #Debian e #freesoftware Da non perdere!",
"actor":{
"id":"twitter.com:_
3107471115",
"objectType":"person",
"content":"content here mirrored from
http://identi.ca/zack | check me
out there, and favor Free & federated
status.net to proprietary &
centralized twitter",
"url":"
http://upsilon.cc/~zack",
"profileUrl":"
https://twitter.com/#!/zacchiro",
"published":"2010-01-22T17:28:19+0000",
"image":{
"url":"
http://a0.twimg.com/profile_images/1752807459/zack-2011-debconf11-1.600x800_normal.jpg"
}
},
"verb":"post",
"object":{
"id":"twitter.com:_3191152619559976960",
"objectType":"feed-entry",
"published":"2012-04-14T13:15:10+0000",
"updated":"2012-04-14T13:15:10+0000",
"displayName":"RT @mircopz: Lun 16 Aprile presso la facoltà
d'ingegneria di #Ancona, incontro con @zacchiro su #Debian e #freesoftware
Da non perdere!",
"content":"RT <a href='@mircopz'>@mircopz</a>: Lun 16 Aprile presso la
facoltà d'ingegneria di <a href='#Ancona'>#Ancona</a>, incontro con <a
href='@zacchiro'>@zacchiro</a> su <a href='#Debian'>#Debian</a> e <a
href='#freesoftware'>#freesoftware</a> Da non perdere!"
},
"target":{
"id":"twitter.com:_
3107471115",
"objectType":"twitter",
"displayName":"Twitter: Stefano Zacchiroli"
},
"tweet-data":{
"retweeted":false,
"possibly_sensitive":null,
"contributors":null,
"in_reply_to_screen_name":null,
"place":{
"country":"France",
"bounding_box":{
"type":"Polygon",
"coordinates":[
[
[
2.2241006,
48.8155414
],
[
2.4697521,
48.8155414
],
[
2.4697521,
48.9021461
],
[
2.2241006,
48.9021461
]
]
]
},
"name":"Paris",
"attributes":{
},
"full_name":"Paris, Paris",
"country_code":"FR",
"url":"
http://api.twitter.com/1/geo/id/7238f93a3e899af6.json",
"place_type":"city",
"id":"7238f93a3e899af6"
},
"retweet_count":0,
"entities":{
"urls":[
],
"user_mentions":[
{
"name":"Mirco Pizzichini",
"indices":[
3,
11
],
"id_str":"361193614",
"id":361193614,
"screen_name":"mircopz"
},
{
"name":"Stefano Zacchiroli",
"indices":[
83,
92
],
"id_str":"107471115",
"id":107471115,
"screen_name":"zacchiro"
}
],
"hashtags":[
{
"indices":[
61,
68
],
"text":"Ancona"
},
{
"indices":[
96,
103
],
"text":"Debian"
},
{
"indices":[
106,
119
],
"text":"freesoftware"
}
]
},
"media":null,
"urls":null,
"user_mentions":null,
"hashtags https":null,
"in_reply_to_user_id":null,
"geo":{
"type":"Point",
"coordinates":[
48.85923,
2.35214
]
},
"favorited":false,
"in_reply_to_status_id_str":null,
"in_reply_to_status_id":null,
"source":"<a href=\"
http://identi.ca\" rel=\"nofollow\">identica</a>",
"in_reply_to_user_id_str":null,
"coordinates":{
"type":"Point",
"coordinates":[
2.35214,
48.85923
]
},
"truncated":false
}
}