@@ -128,43 +128,44 @@ typedef struct _dumpOpts {
128128} * DumpOpts ;
129129
130130typedef struct _options {
131- int indent ; // indention for dump, default 2
132- char circular ; // YesNo
133- char auto_define ; // YesNo
134- char sym_key ; // YesNo
135- char escape_mode ; // Escape_Mode
136- char mode ; // Mode
137- char class_cache ; // YesNo
138- char time_format ; // TimeFormat
139- char bigdec_as_num ; // YesNo
140- char bigdec_load ; // BigLoad
141- char compat_bigdec ; // boolean (0 or 1)
142- char to_hash ; // YesNo
143- char to_json ; // YesNo
144- char as_json ; // YesNo
145- char raw_json ; // YesNo
146- char nilnil ; // YesNo
147- char empty_string ; // YesNo
148- char allow_gc ; // allow GC during parse
149- char quirks_mode ; // allow single JSON values instead of documents
150- char allow_invalid ; // YesNo - allow invalid unicode
151- char create_ok ; // YesNo allow create_id
152- char allow_nan ; // YEsyNo for parsing only
153- char trace ; // YesNo
154- char safe ; // YesNo
155- char sec_prec_set ; // boolean (0 or 1)
156- char ignore_under ; // YesNo - ignore attrs starting with _ if true in object and custom modes
157- char cache_keys ; // YesNo
158- char cache_str ; // string short than or equal to this are cache
159- int64_t int_range_min ; // dump numbers below as string
160- int64_t int_range_max ; // dump numbers above as string
161- const char * create_id ; // 0 or string
162- size_t create_id_len ; // length of create_id
163- int sec_prec ; // second precision when dumping time
164- char float_prec ; // float precision, linked to float_fmt
165- char float_fmt [7 ]; // float format for dumping, if empty use Ruby
166- VALUE hash_class ; // class to use in place of Hash on load
167- VALUE array_class ; // class to use in place of Array on load
131+ int indent ; // indention for dump, default 2
132+ char circular ; // YesNo
133+ char auto_define ; // YesNo
134+ char sym_key ; // YesNo
135+ char escape_mode ; // Escape_Mode
136+ char mode ; // Mode
137+ char class_cache ; // YesNo
138+ char time_format ; // TimeFormat
139+ char bigdec_as_num ; // YesNo
140+ char bigdec_load ; // BigLoad
141+ char compat_bigdec ; // boolean (0 or 1)
142+ char to_hash ; // YesNo
143+ char to_json ; // YesNo
144+ char as_json ; // YesNo
145+ char raw_json ; // YesNo
146+ char nilnil ; // YesNo
147+ char empty_string ; // YesNo
148+ char allow_gc ; // allow GC during parse
149+ char quirks_mode ; // allow single JSON values instead of documents
150+ char allow_invalid ; // YesNo - allow invalid unicode
151+ char create_ok ; // YesNo allow create_id
152+ char allow_nan ; // YEsyNo for parsing only
153+ char trace ; // YesNo
154+ char safe ; // YesNo
155+ char sec_prec_set ; // boolean (0 or 1)
156+ char ignore_under ; // YesNo - ignore attrs starting with _ if true in object and custom modes
157+ char cache_keys ; // YesNo
158+ char cache_str ; // string short than or equal to this are cache
159+ int64_t int_range_min ; // dump numbers below as string
160+ int64_t int_range_max ; // dump numbers above as string
161+ const char * create_id ; // 0 or string
162+ size_t create_id_len ; // length of create_id
163+ int sec_prec ; // second precision when dumping time
164+ char float_prec ; // float precision, linked to float_fmt
165+ char float_fmt [7 ]; // float format for dumping, if empty use Ruby
166+ VALUE hash_class ; // class to use in place of Hash on load
167+ VALUE array_class ; // class to use in place of Array on load
168+ char skip_null_byte ; // YesNo
168169 struct _dumpOpts dump_opts ;
169170 struct _rxClass str_rx ;
170171 VALUE * ignore ; // Qnil terminated array of classes or NULL
@@ -323,6 +324,7 @@ extern VALUE oj_max_nesting_sym;
323324extern VALUE oj_object_class_sym ;
324325extern VALUE oj_object_nl_sym ;
325326extern VALUE oj_quirks_mode_sym ;
327+ extern VALUE oj_skip_null_byte_sym ;
326328extern VALUE oj_space_before_sym ;
327329extern VALUE oj_space_sym ;
328330extern VALUE oj_symbolize_names_sym ;
0 commit comments