GRPC Core  9.0.0
Data Structures | Typedefs | Functions
json.h File Reference
#include <grpc/support/port_platform.h>
#include <stdbool.h>
#include <stdlib.h>
#include "src/core/lib/json/json_common.h"

Go to the source code of this file.

Data Structures

struct  grpc_json
 

Typedefs

typedef struct grpc_json grpc_json
 

Functions

grpc_jsongrpc_json_parse_string_with_len (char *input, size_t size)
 
grpc_jsongrpc_json_parse_string (char *input)
 
char * grpc_json_dump_to_string (const grpc_json *json, int indent)
 
grpc_jsongrpc_json_create (grpc_json_type type)
 
void grpc_json_destroy (grpc_json *json)
 
grpc_jsongrpc_json_link_child (grpc_json *parent, grpc_json *child, grpc_json *sibling)
 
grpc_jsongrpc_json_create_child (grpc_json *sibling, grpc_json *parent, const char *key, const char *value, grpc_json_type type, bool owns_value)
 
grpc_jsongrpc_json_add_number_string_child (grpc_json *parent, grpc_json *it, const char *name, int64_t num)
 

Typedef Documentation

◆ grpc_json

typedef struct grpc_json grpc_json

Function Documentation

◆ grpc_json_add_number_string_child()

grpc_json* grpc_json_add_number_string_child ( grpc_json parent,
grpc_json it,
const char *  name,
int64_t  num 
)

◆ grpc_json_create()

grpc_json* grpc_json_create ( grpc_json_type  type)

◆ grpc_json_create_child()

grpc_json* grpc_json_create_child ( grpc_json sibling,
grpc_json parent,
const char *  key,
const char *  value,
grpc_json_type  type,
bool  owns_value 
)

◆ grpc_json_destroy()

void grpc_json_destroy ( grpc_json json)

◆ grpc_json_dump_to_string()

char* grpc_json_dump_to_string ( const grpc_json json,
int  indent 
)

◆ grpc_json_link_child()

grpc_json* grpc_json_link_child ( grpc_json parent,
grpc_json child,
grpc_json sibling 
)

◆ grpc_json_parse_string()

grpc_json* grpc_json_parse_string ( char *  input)

◆ grpc_json_parse_string_with_len()

grpc_json* grpc_json_parse_string_with_len ( char *  input,
size_t  size 
)