1 #include <stdio.h> 2 #include "demo.h" 3 4 int main() { 5 Service *srv = service_from_string("weather"); 6 printf!("%s\n",service_to_json_str(srv)); 7 free_service(srv); 8 }