2 * $Id: json_util.h,v 1.4 2006/01/30 23:07:57 mclark Exp $
4 * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
5 * Michael Clark <michael@metaparadigm.com>
7 * This library is free software; you can redistribute it and/or modify
8 * it under the terms of the MIT license. See COPYING for details.
15 #include "json_object.h"
21 #define JSON_FILE_BUF_SIZE 4096
23 /* utility functions */
24 extern struct json_object* json_object_from_file(const char *filename);
25 extern int json_object_to_file(char *filename, struct json_object *obj);
26 extern int json_object_to_file_ext(char *filename, struct json_object *obj, int flags);
27 extern int json_parse_int64(const char *buf, int64_t *retval);
28 extern int json_parse_double(const char *buf, double *retval);
32 * Return a string describing the type of the object.
33 * e.g. "int", or "object", etc...
35 extern const char *json_type_to_name(enum json_type o_type);