+ jsmntok_t t[(BUFSIZ/sizeof(jsmntok_t))*2]; /* We expect no more than 128 tokens */
+ FILE *fh = fopen("../../../../data/test.map", "r");
+ char *json_string = malloc(filesize(fh));
+
+ if(fh != NULL)
+ {
+ /*t = malloc(2048);
+ if (t == NULL) {
+ fprintf(stderr, "malloc(): errno=%d\n", errno);
+ return 3;
+ }*/
+ //printf("\n%d\n\n", sizeof(*t));
+ printf("\n%d", sizeof(*t));
+ printf("\n%d", sizeof(t));
+ printf("\n%d\n\n", sizeof(t)/sizeof(t[0]));
+ z = fread(json_string, 1, filesize(fh), fh);
+ //char json_s[2048];
+ fclose(fh); fh = NULL;
+ printf("[%d]\n", z);
+ json_string[z] = '\0';
+ // we can now close the file
+ //printf("]%s[\n", json_s);
+ //json_string=json_s;
+ //printf("[[%s]]\n", json_string);