static struct json *exit_server(struct jrpc_context * ctx, struct json *params, struct json *id) { jrpc_server_stop(&my_server); return json_create_string("Bye!"); }
cJSON * exit_server(jrpc_context * ctx, cJSON * params, cJSON *id) { jrpc_server_stop(&my_server); return cJSON_CreateString("Bye!"); }
json_t* exit_server(jrpc_context *ctx, json_t *params, json_t *id) { jrpc_server_stop(&my_server); return json_string("Bye!"); }