File tree Expand file tree Collapse file tree 3 files changed +138
-56
lines changed Expand file tree Collapse file tree 3 files changed +138
-56
lines changed Original file line number Diff line number Diff line change @@ -36,3 +36,46 @@ The `type` field of `json_value` is one of:
3636* ` json_string ` (see ` u.string.ptr ` , ` u.string.length ` )
3737* ` json_boolean ` (see ` u.boolean ` )
3838* ` json_null `
39+
40+
41+ Compile-Time Options
42+ --------------------
43+
44+ -DJSON_TRACK_SOURCE
45+
46+ Stores the source location (line and column number) inside each ` json_value ` .
47+
48+ This is useful for application-level error reporting.
49+
50+
51+ Runtime Options
52+ ---------------
53+
54+ settings |= json_enable_comments;
55+
56+ Enables C-style ` // line ` and ` /* block */ ` comments.
57+
58+ size_t value_extra
59+
60+ The amount of space (if any) to allocate at the end of each ` json_value ` , in
61+ order to give the application space to add metadata.
62+
63+ void * (* mem_alloc) (size_t, int zero, void * user_data);
64+ void (* mem_free) (void *, void * user_data);
65+
66+ Custom allocator routines. If NULL, the default ` malloc ` and ` free ` will be used.
67+
68+ The ` user_data ` pointer will be forwarded from ` json_settings ` to allow application
69+ context to be passed.
70+
71+
72+
73+
74+
75+
76+
77+
78+
79+
80+
81+
You can’t perform that action at this time.
0 commit comments