42 struct json_tokener *
tok = json_tokener_new();
43 json_object *
root = json_tokener_parse_ex(
tok,
s, (
int)strlen(
s));
44 enum json_tokener_error
jerr = json_tokener_get_error(
tok);
47 if (
jerr != json_tokener_success) {
enum json_tokener_error jerr
struct json_tokener * tok
static Value json_to_fun(json_object *j)
Convert a json-c object into a Fun Value.
Tagged union representing a Fun value.
Value make_nil(void)
Construct a nil Value.
char * value_to_string_alloc(const Value *v)
Allocate a printable C string for a Value.
static Value pop_value(VM *vm)
Pop a Value from the VM operand stack.