diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2020-09-09 15:24:22 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-10-20 21:40:25 +0900 |
commit | 520e0916af0fe53a5ca57269a2bae50cc60e4241 (patch) | |
tree | 0e5b9d615852b0557cc6cd95ce851d59df9d6121 /ext/json/parser/parser.h | |
parent | f6680c9ad1b334f094144d788887cd33f7043f41 (diff) |
Implement a freeze: parser option
If set to true all parsed objects will be
immediately frozen, and strings will be
deduplicated if the Ruby implementation
allows it.
Diffstat (limited to 'ext/json/parser/parser.h')
-rw-r--r-- | ext/json/parser/parser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/json/parser/parser.h b/ext/json/parser/parser.h index e6cf779024..e3eb920cc6 100644 --- a/ext/json/parser/parser.h +++ b/ext/json/parser/parser.h @@ -37,6 +37,7 @@ typedef struct JSON_ParserStruct { int allow_nan; int parsing_name; int symbolize_names; + int freeze; VALUE object_class; VALUE array_class; VALUE decimal_class; |