json-util

json-util

Synopsis

bson *              json2bson                           (JsonNode *node);
JsonNode *          bson2json                           (bson *b);
gchar *             json2string                         (JsonNode *node);
JsonNode *          string2json                         (const gchar *data);
void                json_print                          (JsonNode *node);
JsonNode *          json_read                           (const gchar *filename);
gboolean            json_write                          (JsonNode *node,
                                                         const gchar *filename);

Description

Details

json2bson ()

bson *              json2bson                           (JsonNode *node);

Convert a JSON text to a BSON document

node :

a json text

Returns :

The JsonNode or NULL if unsuccessfull.

bson2json ()

JsonNode *          bson2json                           (bson *b);

Convert a BSON document to a JSON text

b :

Returns :

The JsonNode or NULL if unsuccessfull.

json2string ()

gchar *             json2string                         (JsonNode *node);

node :

Returns :


string2json ()

JsonNode *          string2json                         (const gchar *data);

data :

Returns :


json_print ()

void                json_print                          (JsonNode *node);

node :


json_read ()

JsonNode *          json_read                           (const gchar *filename);

filename :

Returns :


json_write ()

gboolean            json_write                          (JsonNode *node,
                                                         const gchar *filename);

node :

filename :

Returns :