Home --> Documentations --> PJLIB-UTIL Reference
Go to the documentation of this file.
18#ifndef __PJLIB_UTIL_JSON_H__
19#define __PJLIB_UTIL_JSON_H__
203 char *buffer, unsigned *size);
void pj_json_elem_string(pj_json_elem *el, pj_str_t *name, pj_str_t *val)
pj_status_t pj_json_write(const pj_json_elem *elem, char *buffer, unsigned *size)
void pj_json_elem_number(pj_json_elem *el, pj_str_t *name, float val)
void pj_json_elem_null(pj_json_elem *el, pj_str_t *name)
pj_status_t pj_json_writef(const pj_json_elem *elem, pj_json_writer writer, void *user_data)
void pj_json_elem_add(pj_json_elem *el, pj_json_elem *child)
void pj_json_elem_array(pj_json_elem *el, pj_str_t *name)
void pj_json_elem_bool(pj_json_elem *el, pj_str_t *name, pj_bool_t val)
pj_json_val_type Definition: json.h:45
pj_json_elem * pj_json_parse(pj_pool_t *pool, char *buffer, unsigned *size, pj_json_err_info *err_info)
void pj_json_elem_obj(pj_json_elem *el, pj_str_t *name)
pj_status_t(* pj_json_writer)(const char *s, unsigned size, void *user_data) Definition: json.h:108
@ PJ_JSON_VAL_NULL Definition: json.h:46
@ PJ_JSON_VAL_NUMBER Definition: json.h:48
@ PJ_JSON_VAL_ARRAY Definition: json.h:50
@ PJ_JSON_VAL_STRING Definition: json.h:49
@ PJ_JSON_VAL_BOOL Definition: json.h:47
@ PJ_JSON_VAL_OBJ Definition: json.h:51
pj_str_t str Definition: json.h:81
pj_json_list children Definition: json.h:82
float num Definition: json.h:80
union pj_json_elem::@1 value
pj_str_t name Definition: json.h:75
pj_json_val_type type Definition: json.h:76
pj_bool_t is_true Definition: json.h:79
unsigned line Definition: json.h:92
int err_char Definition: json.h:94
unsigned col Definition: json.h:93
PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.
|