YAZ
5.34.0
|
Implements reading of MARC in JSON format. More...
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <yaz/marcdisp.h>
#include <yaz/json.h>
#include <yaz/yaz-util.h>
Go to the source code of this file.
Functions | |
static void | parse_subfields (yaz_marc_t mt, struct json_node *sf, WRBUF wtmp) |
static void | parse_field (yaz_marc_t mt, struct json_node *p, int indicator_length, WRBUF wtmp) |
int | yaz_marc_read_json_node (yaz_marc_t mt, struct json_node *n) |
Implements reading of MARC in JSON format.
Definition in file marc_read_json.c.
|
static |
Definition at line 48 of file marc_read_json.c.
References json_node_array, json_node_list, json_node_object, json_node_pair, json_node_string, json_node::link, parse_subfields(), json_node::string, json_node::type, json_node::u, wrbuf_cstr(), wrbuf_len, wrbuf_puts(), wrbuf_rewind(), yaz_marc_add_controlfield(), and yaz_marc_add_datafield().
Referenced by yaz_marc_read_json_node().
|
static |
Definition at line 23 of file marc_read_json.c.
References json_node_list, json_node_object, json_node_pair, json_node_string, json_node::link, json_node::string, json_node::type, json_node::u, wrbuf_buf, wrbuf_len, wrbuf_puts(), wrbuf_rewind(), and yaz_marc_add_subfield().
Referenced by parse_field().
int yaz_marc_read_json_node | ( | yaz_marc_t | mt, |
struct json_node * | n | ||
) |
Definition at line 101 of file marc_read_json.c.
References json_node_array, json_node_list, json_node_object, json_node_pair, json_node_string, json_node::link, parse_field(), json_node::string, json_node::type, json_node::u, wrbuf_alloc(), wrbuf_destroy(), yaz_marc_cprintf(), and yaz_marc_set_leader().