7 // really simple JSON helpers
8 #define JSON_START() dprintf(fd,"{")
9 #define JSON_NUM(NAME) dprintf(fd,"\"" #NAME "\":%d", NAME) //see the int?
10 #define JSON_NEXT() dprintf(fd,",")
11 #define JSON_STR(NAME) dprintf(fd,"\"" #NAME "\":\"%s\"", NAME)
12 #define JSON_CHAR(NAME) dprintf(fd,"\"" #NAME "\":\"%c\"", NAME)
13 #define JSON_END() dprintf(fd,"}\n")
16 keys_json_print(int fd, char key)
18 static const char *type = "keys";
28 rfid_json_print(int fd,
30 uint8_t sak, //select acknowledge
34 static const char *type = "rfid";