Может быть, что-то вроде этого, я не проверял, но должен работать $ myFile = "file.txt";
$json_data = json_decode(file_get_contents($myFile), true);
$value1 = $json_data['value1'];
$value2 = $json_data['value2'];
$value3 = $json_data['value3'];
$dataPoints1 = array(
array(
"label" => "column1",
"y" => $value1
),
array(
"label" => "column2",
"y" => $value2
),
array(
"label" => "column3",
"y" => $value3
)
);
file.txt:
{"value1":1,"value2":2,"value3":3}