Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- » import clr
- » clr.AddReferenceByPartialName('System.Web.Extensions')
- » from System.Web.Script.Serialization import JavaScriptSerializer
- » js = JavaScriptSerializer()
- » js.Serialize({'label': 'Europe (EU27)', 'data': [[1999, 3.0], [2000, 3.9], [2001, 2.0], [2002, 1.2], [2003, 1.3], [2004, 2.5], [2005, 2.0], [2006, 3.1], [2007, 2.9], [2008, 0.9]]})
- '{"data":[[1999,3],[2000,3.9],[2001,2],[2002,1.2],[2003,1.3],[2004,2.5],[2005,2],[2006,3.1],[2007,2.9],[2008,0.9]],"label":"Europe (EU27)"}'
- »
Advertisement
Add Comment
Please, Sign In to add comment