BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB-UTIL Reference

json.h File Reference

PJLIB JSON Implementation. More...

Go to the source code of this file.

Data Structures

struct  pj_json_list
 
struct  pj_json_elem
 
struct  pj_json_err_info
 

Typedefs

typedef pj_status_t(* pj_json_writer) (const char *s, unsigned size, void *user_data)
 

Enumerations

enum  pj_json_val_type {
  PJ_JSON_VAL_NULL , PJ_JSON_VAL_BOOL , PJ_JSON_VAL_NUMBER , PJ_JSON_VAL_STRING ,
  PJ_JSON_VAL_ARRAY , PJ_JSON_VAL_OBJ
}
 

Functions

void pj_json_elem_null (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)
 
void pj_json_elem_number (pj_json_elem *el, pj_str_t *name, float val)
 
void pj_json_elem_string (pj_json_elem *el, pj_str_t *name, pj_str_t *val)
 
void pj_json_elem_array (pj_json_elem *el, pj_str_t *name)
 
void pj_json_elem_obj (pj_json_elem *el, pj_str_t *name)
 
void pj_json_elem_add (pj_json_elem *el, pj_json_elem *child)
 
pj_json_elempj_json_parse (pj_pool_t *pool, char *buffer, unsigned *size, pj_json_err_info *err_info)
 
pj_status_t pj_json_write (const pj_json_elem *elem, char *buffer, unsigned *size)
 
pj_status_t pj_json_writef (const pj_json_elem *elem, pj_json_writer writer, void *user_data)
 

Detailed Description

PJLIB JSON Implementation.

 


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.