syslog-ng source
json-parser.c File Reference
#include "json-parser.h"
#include "dot-notation.h"
#include "scratch-buffers.h"
#include "str-repr/encode.h"
#include <string.h>
#include <ctype.h>
#include <json.h>
#include <json_object_private.h>
Include dependency graph for json-parser.c:

Classes

struct  JSONParser
 

Macros

#define JSON_C_VER_013   (13 << 8)
 

Functions

void json_parser_set_prefix (LogParser *p, const gchar *prefix)
 
void json_parser_set_marker (LogParser *p, const gchar *marker)
 
void json_parser_set_extract_prefix (LogParser *s, const gchar *extract_prefix)
 
void json_parser_set_key_delimiter (LogParser *s, gchar delimiter)
 
const char * json_tokener_error_desc (enum json_tokener_error err)
 
LogParser * json_parser_new (GlobalConfig *cfg)
 

Macro Definition Documentation

◆ JSON_C_VER_013

#define JSON_C_VER_013   (13 << 8)

Function Documentation

◆ json_parser_new()

LogParser* json_parser_new ( GlobalConfig *  cfg)

◆ json_parser_set_extract_prefix()

void json_parser_set_extract_prefix ( LogParser *  s,
const gchar *  extract_prefix 
)

◆ json_parser_set_key_delimiter()

void json_parser_set_key_delimiter ( LogParser *  s,
gchar  delimiter 
)

◆ json_parser_set_marker()

void json_parser_set_marker ( LogParser *  p,
const gchar *  marker 
)

◆ json_parser_set_prefix()

void json_parser_set_prefix ( LogParser *  p,
const gchar *  prefix 
)

◆ json_tokener_error_desc()

const char* json_tokener_error_desc ( enum json_tokener_error  err)