{
\"label\": \"Devices per year\",
\"data\": [
[1999, 3.0], [2000, 3.9], [200
Doing something like this should work if you would like to declare it as JSON only and not by using json_encode. This also eliminates the need to declare multiple variables for each of the arrays inside. But this would be a viable solution only if the contents of the array for data is finite.
$json_string = '{
"label": "Devices per year",
"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]
]}';