21 #include <freeDiameter/freeDiameter-host.h> 22 #include "freeDiameter/libfdproto.h" 23 #include "freeDiameter/libfdcore.h" 29 void fdJsonGetJSON( msg_or_avp *ref, std::string &json,
void (*errfunc)(
const char *) );
53 int fdJsonAddAvps(
const char *json, msg_or_avp *msg,
void (*errfunc)(
const char *) );
58 const char *
fdJsonGetJSON( msg_or_avp *msg,
void (*errfunc)(
const char *) );
61 #define FDJSON_SUCCESS 0 62 #define FDJSON_JSON_PARSING_ERROR 1 63 #define FDJSON_EXCEPTION 2 const char * fdJsonGetJSON(msg_or_avp *msg, void(*errfunc)(const char *))
Converts the AVP's from a freeDiameter message or grouped AVP to a JSON string.
Definition: efdjson.cpp:1064
int fdJsonAddAvps(const char *json, msg_or_avp *msg, void(*errfunc)(const char *))
Adds the AVP from the JSON string to a freeDiameter message or grouped AVP.
Definition: efdjson.cpp:693
bool fdJsonGetValueOfMember(std::string json, std::string member, std::string &value)
Definition: efdjson.cpp:1073
bool fdJsonGetApnValueFromSubData(std::string json, std::string &apn)
Definition: efdjson.cpp:1131