LibDocument

image-alt

Document and Trie Processing.


json.h

Version: 0.1.1

Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2016 CODAMONO, Ontario, Canada
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at: http://mozilla.org/MPL/2.0/
7  */
8 
17 #ifndef __ldoc__json__
18 #define __ldoc__json__
19 
20 #include "document.h"
21 
22 #include <stdbool.h>
23 #include <stdint.h>
24 #include <stdio.h>
25 #include <stdlib.h>
26 #include <string.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
35 typedef enum
36 {
54 
58 typedef enum
59 {
69 
78 ldoc_doc_t* ldoc_json_read(char* json, size_t len, off_t* err);
79 
91 ldoc_doc_t* ldoc_ldjson_read(char* ldj, size_t len, off_t* err, off_t* nxt);
92 
93 #ifdef __cplusplus
94 } /* extern "C" */
95 #endif
96 
97 #endif /* defined(__ldoc__json__) */
Definition: json.h:67
Document structure.
Definition: document.h:432
ldoc_doc_t * ldoc_json_read(char *json, size_t len, off_t *err)
Converts a single JSON object in string form to a document.
Definition: json.h:44
ldoc_json_kwval_t
JSON keyword types.
Definition: json.h:35
Functions and data structures for creating annotated documents that are treelike (cross references pe...
ldoc_json_prs_err_t
JSON parsing errors.
Definition: json.h:58
Definition: json.h:63
Definition: json.h:52
Definition: json.h:48
ldoc_doc_t * ldoc_ldjson_read(char *ldj, size_t len, off_t *err, off_t *nxt)
Converts a JSON objects – one of many – in string form to a document.
Definition: json.h:40