test_json_ld.c
Go to the documentation of this file.
1 #include "../csm/csm_all.h"
2 
3 int main() {
4  JO jo; /* the monkey */
5  LDP ld;
6 
7  while((jo = json_read_stream(stdin))) {
8  if(!(ld = json_to_ld(jo))) {
9  fprintf(stderr, "Could not transform to laser_data:\n\n");
10  fprintf(stderr, "-----\n");
11  fprintf(stderr, "%s", json_object_to_json_string(jo));
12  fprintf(stderr, "-----\n");
13  continue;
14  }
15 
16  jo = ld_to_json(ld);
17  printf("%s", json_object_to_json_string(jo));
18  printf("\n");
19  }
20 
21  return 0;
22 }
LDP json_to_ld(JO jo)
int main()
Definition: test_json_ld.c:3
const char * json_object_to_json_string(struct json_object *this)
Definition: json_object.c:199
JO ld_to_json(LDP ld)
JO json_read_stream(FILE *f)


csm
Author(s): Andrea Censi
autogenerated on Tue May 11 2021 02:18:23