json_aux.h
00001 #ifndef JSON_AUX_H
00002 #define JSON_AUX_H
00003
00004 #include "buffer.h"
00005 #include "json.h"
00006
00007 #define jistype(o,t) ((o)->type == (t))
00008
00009 json_value *jsonA_getname (json_value *object, const char *name, json_type t);
00010 json_value *jsonA_getname_raw (json_value *object, const char *name);
00011 int jsonA_escapestring(buffer_t *B, const char *str);
00012 json_value *jsonA_parse_file(const char *path);
00013
00014 extern const char json_type_str[][10];
00015
00016 #endif