#ifndef JSON_PARSER_H
#define JSON_PARSER_H
#include "unichar.h"
enum json_type {
/* { key: */
/* : { new object */
/* } (not returned for the root object) */
};
enum json_parser_flags {
/* By default we assume that the input is an object and parsing skips
the root level "{" and "}". If this flag is set, it's possible to
parse any other type of JSON values directly. */
};
/* Parse JSON tokens from the input stream. */
enum json_parser_flags flags);
/* Parse the next token. Returns 1 if found, 0 if more input stream is
non-blocking and needs more input, -1 if input stream is at EOF. */
const char **value_r);
/* Skip the next object value. If it's an object, its members are also
skipped. */
/* Return the following string as input stream. Returns 1 if ok, 0 if
input stream is non-blocking and needs more input, -1 if the next token
isn't a string (call json_parse_next()). */
/* Append UCS4 to already opened JSON string. */
/* Append data to already opened JSON string. src should be valid UTF-8 data. */
/* Same as json_append_escaped(), but append non-\0 terminated input. */
#endif