php - jsondata
phpを使って、jsondataに送信する場合、
(grid gadgetと連携するから、grid gadgetのデータと一緒)
a'];
$b = $_GET['b'];
$c = $_GET['c'];
$json = ",\r\n{\"a\":\"". $a ."\",\"b\":\"". $b ."\",\"c\":\"". $c ."\"}\r\n]}";
$keys[']}'] = $json;
$buff = file_get_contents("todo1.json");
$buff = strtr($buff, $keys);
file_put_contents("todo1.json", $buff);
}else{
print("error");
}
?>
{data:[
{"a":"〜〜", "b":"〜〜", "c":"〜〜"}
]}