Cthulhu  0.2.10
Cthulhu compiler collection
json.h File Reference
#include <ctu_json_api.h>
#include "core/analyze.h"
#include "core/text.h"
#include "core/where.h"
#include "std/typed/vector.h"
#include <gmp.h>
#include <stdbool.h>
#include "json/json.inc"
Include dependency graph for json.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  json_t
 a json value More...
 
struct  json_parse_t
 

Macros

#define JSON_TYPE(id, str)   id,
 

Enumerations

enum  json_kind_t { eJsonCount }
 the kind of json value More...
 

Functions

CT_JSON_API json_tjson_map_get (const json_t *json, const char *key)
 get a json value from an object by key More...
 
CT_JSON_API json_tjson_array_get (const json_t *json, size_t index)
 get an array element by index More...
 
CT_JSON_API json_tjson_scan (io_t *io, logger_t *logger, arena_t *arena)
 scan an io into a json value scan the contents of an io object into a json value More...
 
CT_JSON_API json_parse_t json_parse (io_t *io, logger_t *logger, arena_t *arena)
 parse an io into a json value parse the contents of an io object into a json value More...
 
CT_JSON_API void json_print (const json_t *json, io_t *io, size_t indent, bool tabs)
 pretty print a json value to an io More...
 
CT_JSON_API const char * json_kind_name (json_kind_t kind)
 get the name of a json kind More...
 

Macro Definition Documentation

◆ JSON_TYPE

#define JSON_TYPE (   id,
  str 
)    id,

Definition at line 35 of file json.h.