Cthulhu
0.2.10
Cthulhu compiler collection
|
#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"
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_t * | json_map_get (const json_t *json, const char *key) |
get a json value from an object by key More... | |
CT_JSON_API json_t * | json_array_get (const json_t *json, size_t index) |
get an array element by index More... | |
CT_JSON_API json_t * | json_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... | |