outcome  year         championship surface         opponent                                                   score
0        winner  2005      french open (1)    clay   mariano puerta                   6 - 7 (6 - 8) , 6 - 3 , 6 - 1 , 7 - 5
1        winner  2006      french open (2)    clay    roger federer                   1 - 6 , 6 - 1 , 6 - 4 , 7 - 6 (7 - 4)
2   runner - up  2006        wimbledon (1)   grass    roger federer           0 - 6 , 6 - 7 (5 - 7) , 7 - 6 (7 - 2) , 3 - 6
3        winner  2007      french open (3)    clay    roger federer                           6 - 3 , 4 - 6 , 6 - 3 , 6 - 4
4   runner - up  2007        wimbledon (2)   grass    roger federer   6 - 7 (7 - 9) , 6 - 4 , 6 - 7 (3 - 7) , 6 - 2 , 2 - 6
5        winner  2008      french open (4)    clay    roger federer                                   6 - 1 , 6 - 3 , 6 - 0
6        winner  2008        wimbledon (1)   grass    roger federer  6 - 4 , 6 - 4 , 6 - 7 (5 - 7) , 6 - 7 (8 - 10) , 9 - 7
7        winner  2009  australian open (1)    hard    roger federer           7 - 5 , 3 - 6 , 7 - 6 (7 - 3) , 3 - 6 , 6 - 2
8        winner  2010      french open (5)    clay  robin söderling                                   6 - 4 , 6 - 2 , 6 - 4
9        winner  2010        wimbledon (2)   grass    tomáš berdych                                   6 - 3 , 7 - 5 , 6 - 4
10       winner  2010          us open (1)    hard   novak djokovic                           6 - 4 , 5 - 7 , 6 - 4 , 6 - 2
11       winner  2011      french open (6)    clay    roger federer                   7 - 5 , 7 - 6 (7 - 3) , 5 - 7 , 6 - 1
12  runner - up  2011        wimbledon (3)   grass   novak djokovic                           4 - 6 , 1 - 6 , 6 - 1 , 3 - 6
13  runner - up  2011          us open (1)    hard   novak djokovic                   2 - 6 , 4 - 6 , 7 - 6 (7 - 3) , 1 - 6
14  runner - up  2012  australian open (1)    hard   novak djokovic           7 - 5 , 4 - 6 , 2 - 6 , 7 - 6 (7 - 5) , 5 - 7
15       winner  2012      french open (7)    clay   novak djokovic                           6 - 4 , 6 - 3 , 2 - 6 , 7 - 5
16       winner  2013      french open (8)    clay     david ferrer                                   6 - 3 , 6 - 2 , 6 - 3
17       winner  2013          us open (2)    hard   novak djokovic                           6 - 2 , 3 - 6 , 6 - 4 , 6 - 1

Table as JSON:
{"outcome":{"0":"winner","1":"winner","2":"runner - up","3":"winner","4":"runner - up","5":"winner","6":"winner","7":"winner","8":"winner","9":"winner","10":"winner","11":"winner","12":"runner - up","13":"runner - up","14":"runner - up","15":"winner","16":"winner","17":"winner"},"year":{"0":2005,"1":2006,"2":2006,"3":2007,"4":2007,"5":2008,"6":2008,"7":2009,"8":2010,"9":2010,"10":2010,"11":2011,"12":2011,"13":2011,"14":2012,"15":2012,"16":2013,"17":2013},"championship":{"0":"french open (1)","1":"french open (2)","2":"wimbledon (1)","3":"french open (3)","4":"wimbledon (2)","5":"french open (4)","6":"wimbledon (1)","7":"australian open (1)","8":"french open (5)","9":"wimbledon (2)","10":"us open (1)","11":"french open (6)","12":"wimbledon (3)","13":"us open (1)","14":"australian open (1)","15":"french open (7)","16":"french open (8)","17":"us open (2)"},"surface":{"0":"clay","1":"clay","2":"grass","3":"clay","4":"grass","5":"clay","6":"grass","7":"hard","8":"clay","9":"grass","10":"hard","11":"clay","12":"grass","13":"hard","14":"hard","15":"clay","16":"clay","17":"hard"},"opponent":{"0":"mariano puerta","1":"roger federer","2":"roger federer","3":"roger federer","4":"roger federer","5":"roger federer","6":"roger federer","7":"roger federer","8":"robin söderling","9":"tomáš berdych","10":"novak djokovic","11":"roger federer","12":"novak djokovic","13":"novak djokovic","14":"novak djokovic","15":"novak djokovic","16":"david ferrer","17":"novak djokovic"},"score":{"0":"6 - 7 (6 - 8) , 6 - 3 , 6 - 1 , 7 - 5","1":"1 - 6 , 6 - 1 , 6 - 4 , 7 - 6 (7 - 4)","2":"0 - 6 , 6 - 7 (5 - 7) , 7 - 6 (7 - 2) , 3 - 6","3":"6 - 3 , 4 - 6 , 6 - 3 , 6 - 4","4":"6 - 7 (7 - 9) , 6 - 4 , 6 - 7 (3 - 7) , 6 - 2 , 2 - 6","5":"6 - 1 , 6 - 3 , 6 - 0","6":"6 - 4 , 6 - 4 , 6 - 7 (5 - 7) , 6 - 7 (8 - 10) , 9 - 7","7":"7 - 5 , 3 - 6 , 7 - 6 (7 - 3) , 3 - 6 , 6 - 2","8":"6 - 4 , 6 - 2 , 6 - 4","9":"6 - 3 , 7 - 5 , 6 - 4","10":"6 - 4 , 5 - 7 , 6 - 4 , 6 - 2","11":"7 - 5 , 7 - 6 (7 - 3) , 5 - 7 , 6 - 1","12":"4 - 6 , 1 - 6 , 6 - 1 , 3 - 6","13":"2 - 6 , 4 - 6 , 7 - 6 (7 - 3) , 1 - 6","14":"7 - 5 , 4 - 6 , 2 - 6 , 7 - 6 (7 - 5) , 5 - 7","15":"6 - 4 , 6 - 3 , 2 - 6 , 7 - 5","16":"6 - 3 , 6 - 2 , 6 - 3","17":"6 - 2 , 3 - 6 , 6 - 4 , 6 - 1"}}