2 * This file contains definition of json structure
15 #include "ccan/talloc/talloc.h"
16 #include "ccan/string/string.h"
18 #include "tools/tools.h"
29 /* Function for storing json structure to file given struct json*/
30 static int storejsontofile(const struct json *jsonobj, const char *jsonfile);
32 /*Function to store in database*/
33 static int storejsontodb(const struct json *jsonobj, const char *db);
35 /*create json structure*/
36 static struct json *createjson(char **infofile, const char *author, const char *directory);
38 /*Extract info from file*/
39 static char **extractinfo(char **file);