#include <json-glib/json-glib.h>

int main (int argc, char **argv)
{
    JsonParser *parser;
    JsonReader *reader;
    const gchar *text = "{'v': null}";

    parser = json_parser_new ();
    json_parser_load_from_data (parser, text, -1, NULL);
    reader = json_reader_new (json_parser_get_root (parser));
    json_reader_read_member (reader, "v");
    g_print ("is_value -> %s\n", json_reader_is_value (reader) ? "TRUE" : "FALSE");
    json_reader_get_value (reader); // This sets an error because it doesn't treat null as a value
    g_print ("get_error -> %p\n", json_reader_get_error (reader)); // You lied!!
    json_reader_end_member (reader);

    return 0;
}
