   return "{" + stringJson("event", event) + "," + wrapDq("datas") + ":[";
 }
 
-String boolJson(String key, bool value){
-  String str = value ? "true" : "false";
-  return wrapDq(key) + ":" + str;
-}
-
-String intJson(String key, int value){
-  return wrapDq(key) + ":" + String(value);
-}
-
-String stringJson(String key, String value){
-  return wrapDq(key) + ":" + wrapDq(value);
-}
 
 String task(String msg){
   // 関数テーブルからタスクを決定する.


String aiRead(uint8_t port){
  int val = analogRead(port);
  return ioReturnJson("OK", port, val);
}

String ioReturnJson(String msg, int port, int val){
  String body = wrapDq("msg") + ":"+wrapDq(msg)
    + "," + wrapDq("port") + ":" + String(port)
    + "," + wrapDq("val") + ":" + String(val);
  return wraped('{', body, '}');
}


/*

   Utility functions.
 */



boolean isInt(String str){
  for(int i = 0; i < str.length(); i++){
